Modified linker scripts for GCC 4.4.1.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1113 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
gdisirio 2009-08-28 15:11:16 +00:00
parent 1ce340b59e
commit 553f23ae74
6 changed files with 110 additions and 82 deletions

View File

@ -30,8 +30,8 @@ __stacks_total_size__ = __und_stack_size__ + __abt_stack_size__ + __fiq_stack_si
MEMORY MEMORY
{ {
flash : org = 0x100000, len = 256k flash : org = 0x100000, len = 256k
ram : org = 0x200020, len = 64k - 0x20 ram : org = 0x200020, len = 64k - 0x20
} }
__ram_start__ = ORIGIN(ram); __ram_start__ = ORIGIN(ram);
@ -42,49 +42,53 @@ SECTIONS
{ {
. = 0; . = 0;
.text : .text : ALIGN(16) SUBALIGN(16)
{ {
_text = .; _text = .;
KEEP(*(vectors)); KEEP(*(vectors))
*(.text) *(.text)
*(.text.*); *(.text.*);
*(.rodata); *(.rodata);
*(.rodata.*); *(.rodata.*);
*(.glue_7t); *(.glue_7t);
*(.glue_7); *(.glue_7);
*(.gcc*); *(.gcc*);
*(.ctors); *(.ctors);
*(.dtors); *(.dtors);
. = ALIGN(4); . = ALIGN(4);
_etext = .; _etext = .;
} > flash } > flash
_textdata = _etext; _textdata = _etext;
.data : .data :
{ {
_data = .; _data = .;
_data = .; *(.data)
*(.data) . = ALIGN(4);
. = ALIGN(4); *(.data.*)
*(.data.*) . = ALIGN(4);
. = ALIGN(4); *(.ramtext)
*(.ramtext) . = ALIGN(4);
. = ALIGN(4); _edata = .;
_edata = .; } > ram AT > flash
} > ram AT > flash
.bss : .bss :
{ {
_bss_start = .; _bss_start = .;
*(.bss) *(.bss)
. = ALIGN(4); . = ALIGN(4);
*(.bss.*) *(.bss.*)
. = ALIGN(4); . = ALIGN(4);
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
_bss_end = .; _bss_end = .;
} > ram } > ram
/DISCARD/ :
{
*(.eh_*)
}
} }
PROVIDE(end = .); PROVIDE(end = .);

View File

@ -30,8 +30,8 @@ __stacks_total_size__ = __und_stack_size__ + __abt_stack_size__ + __fiq_stack_si
MEMORY MEMORY
{ {
flash : org = 0x100000, len = 256k flash : org = 0x100000, len = 256k
ram : org = 0x200020, len = 64k - 0x20 ram : org = 0x200020, len = 64k - 0x20
} }
__ram_start__ = ORIGIN(ram); __ram_start__ = ORIGIN(ram);
@ -42,49 +42,53 @@ SECTIONS
{ {
. = 0; . = 0;
.text : .text : ALIGN(16) SUBALIGN(16)
{ {
_text = .; _text = .;
KEEP(*(vectors)); KEEP(*(vectors))
*(.text) *(.text)
*(.text.*); *(.text.*);
*(.rodata); *(.rodata);
*(.rodata.*); *(.rodata.*);
*(.glue_7t); *(.glue_7t);
*(.glue_7); *(.glue_7);
*(.gcc*); *(.gcc*);
*(.ctors); *(.ctors);
*(.dtors); *(.dtors);
. = ALIGN(4); . = ALIGN(4);
_etext = .; _etext = .;
} > flash } > flash
_textdata = _etext; _textdata = _etext;
.data : .data :
{ {
_data = .; _data = .;
_data = .; *(.data)
*(.data) . = ALIGN(4);
. = ALIGN(4); *(.data.*)
*(.data.*) . = ALIGN(4);
. = ALIGN(4); *(.ramtext)
*(.ramtext) . = ALIGN(4);
. = ALIGN(4); _edata = .;
_edata = .; } > ram AT > flash
} > ram AT > flash
.bss : .bss :
{ {
_bss_start = .; _bss_start = .;
*(.bss) *(.bss)
. = ALIGN(4); . = ALIGN(4);
*(.bss.*) *(.bss.*)
. = ALIGN(4); . = ALIGN(4);
*(COMMON) *(COMMON)
. = ALIGN(4); . = ALIGN(4);
_bss_end = .; _bss_end = .;
} > ram } > ram
/DISCARD/ :
{
*(.eh_*)
}
} }
PROVIDE(end = .); PROVIDE(end = .);

View File

@ -87,6 +87,11 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_bss_end = .; _bss_end = .;
} > ram } > ram
/DISCARD/ :
{
*(.eh_*)
}
} }
PROVIDE(end = .); PROVIDE(end = .);

View File

@ -87,6 +87,11 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_bss_end = .; _bss_end = .;
} > ram } > ram
/DISCARD/ :
{
*(.eh_*)
}
} }
PROVIDE(end = .); PROVIDE(end = .);

View File

@ -87,6 +87,11 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_bss_end = .; _bss_end = .;
} > ram } > ram
/DISCARD/ :
{
*(.eh_*)
}
} }
PROVIDE(end = .); PROVIDE(end = .);

View File

@ -80,6 +80,11 @@ SECTIONS
. = ALIGN(4); . = ALIGN(4);
_bss_end = .; _bss_end = .;
} > ram } > ram
/DISCARD/ :
{
*(.eh_*)
}
} }
PROVIDE(end = .); PROVIDE(end = .);