diff options
Diffstat (limited to 'demos')
| -rw-r--r-- | demos/ARM7-LPC214x-G++/ch.ld | 2 | ||||
| -rw-r--r-- | demos/ARM7-LPC214x-GCC-minimal/ch.ld | 2 | ||||
| -rw-r--r-- | demos/ARM7-LPC214x-GCC/ch.ld | 2 | ||||
| -rw-r--r-- | demos/ARMCM3-STM32F103-GCC/ch.ld | 96 | 
4 files changed, 51 insertions, 51 deletions
diff --git a/demos/ARM7-LPC214x-G++/ch.ld b/demos/ARM7-LPC214x-G++/ch.ld index b0425dbca..2bbea7477 100644 --- a/demos/ARM7-LPC214x-G++/ch.ld +++ b/demos/ARM7-LPC214x-G++/ch.ld @@ -45,7 +45,7 @@ SECTIONS  {
  	. = 0;
 -	.text :
 +	.text : ALIGN(16) SUBALIGN(16)
  	{
          _text = .;
          KEEP(*(vectors))
 diff --git a/demos/ARM7-LPC214x-GCC-minimal/ch.ld b/demos/ARM7-LPC214x-GCC-minimal/ch.ld index b0425dbca..2bbea7477 100644 --- a/demos/ARM7-LPC214x-GCC-minimal/ch.ld +++ b/demos/ARM7-LPC214x-GCC-minimal/ch.ld @@ -45,7 +45,7 @@ SECTIONS  {
  	. = 0;
 -	.text :
 +	.text : ALIGN(16) SUBALIGN(16)
  	{
          _text = .;
          KEEP(*(vectors))
 diff --git a/demos/ARM7-LPC214x-GCC/ch.ld b/demos/ARM7-LPC214x-GCC/ch.ld index b0425dbca..2bbea7477 100644 --- a/demos/ARM7-LPC214x-GCC/ch.ld +++ b/demos/ARM7-LPC214x-GCC/ch.ld @@ -45,7 +45,7 @@ SECTIONS  {
  	. = 0;
 -	.text :
 +	.text : ALIGN(16) SUBALIGN(16)
  	{
          _text = .;
          KEEP(*(vectors))
 diff --git a/demos/ARMCM3-STM32F103-GCC/ch.ld b/demos/ARMCM3-STM32F103-GCC/ch.ld index f18ba7e5d..af13b206d 100644 --- a/demos/ARMCM3-STM32F103-GCC/ch.ld +++ b/demos/ARMCM3-STM32F103-GCC/ch.ld @@ -26,64 +26,64 @@ __stacks_total_size__	= __main_stack_size__ + __process_stack_size__;  MEMORY
  {
 -	flash : org = 0x08000000, len = 128k
 -	ram : org = 0x20000000, len = 20k
 +    flash : org = 0x08000000, len = 128k
 +    ram : org = 0x20000000, len = 20k
  }
 -__ram_start__		= ORIGIN(ram);
 -__ram_size__		= LENGTH(ram);
 -__ram_end__		= __ram_start__ + __ram_size__;
 +__ram_start__       = ORIGIN(ram);
 +__ram_size__        = LENGTH(ram);
 +__ram_end__         = __ram_start__ + __ram_size__;
  SECTIONS
  {
 -	. = 0;
 +    . = 0;
 -	.text :
 -	{
 -		_text = .;
 -		KEEP(*(vectors));
 -                *(.text)
 -		*(.text.*);
 -		*(.rodata);
 -		*(.rodata.*);
 -		*(.glue_7t);
 -		*(.glue_7);
 -		*(.gcc*);
 -		*(.ctors);
 -		*(.dtors);
 -		. = ALIGN(4);
 -		_etext = .;
 -	} > flash
 +    .text : ALIGN(16) SUBALIGN(16)
 +    {
 +        _text = .;
 +        KEEP(*(vectors));
 +        *(.text)
 +        *(.text.*);
 +        *(.rodata);
 +        *(.rodata.*);
 +        *(.glue_7t);
 +        *(.glue_7);
 +        *(.gcc*);
 +        *(.ctors);
 +        *(.dtors);
 +        . = ALIGN(4);
 +        _etext = .;
 +    } > flash
 -	_textdata = _etext;
 +    _textdata = _etext;
 -	.data :
 -	{
 -		_data = .;
 -		*(.data)
 -		. = ALIGN(4);
 -		*(.data.*)
 -		. = ALIGN(4);
 -		*(.ramtext)
 -		. = ALIGN(4);
 -		_edata = .;
 -	} > ram AT > flash
 +    .data :
 +    {
 +        _data = .;
 +        *(.data)
 +        . = ALIGN(4);
 +        *(.data.*)
 +        . = ALIGN(4);
 +        *(.ramtext)
 +        . = ALIGN(4);
 +        _edata = .;
 +    } > ram AT > flash
 -	.bss :
 -	{
 -		_bss_start = .;
 -		*(.bss)
 -		. = ALIGN(4);
 -		*(.bss.*)
 -		. = ALIGN(4);
 -		*(COMMON)
 -		. = ALIGN(4);
 -		_bss_end = .;
 -	} > ram    
 +    .bss :
 +    {
 +        _bss_start = .;
 +        *(.bss)
 +        . = ALIGN(4);
 +        *(.bss.*)
 +        . = ALIGN(4);
 +        *(COMMON)
 +        . = ALIGN(4);
 +        _bss_end = .;
 +    } > ram    
  }
  PROVIDE(end = .);
 -_end 			= .;
 +_end            = .;
 -__heap_base__		= _end;
 -__heap_end__		= __ram_end__ - __stacks_total_size__;
 +__heap_base__   = _end;
 +__heap_end__    = __ram_end__ - __stacks_total_size__;
  | 
