Added sections as required by C++ and ELF.

This commit is contained in:
Joel Sherrill
1999-10-06 18:05:39 +00:00
parent 01c36de4f2
commit add0545d82
4 changed files with 14 additions and 3 deletions

View File

@@ -48,13 +48,14 @@ SECTIONS
.text :
{
*(.text)
*(.gnu.linkonce.t.*)
*(.descriptors)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
} >RAM
.init : { *(.init) } >RAM
.fini : { *(.fini) } >RAM
.rodata : { *(.rodata) } >RAM
.rodata : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
.rodata1 : { *(.rodata1) } >RAM
_etext = .;
PROVIDE (etext = .);
@@ -81,6 +82,7 @@ SECTIONS
.data :
{
*(.data)
*(.gnu.linkonce.d.*)
CONSTRUCTORS
} >RAM
PROVIDE (__EXCEPT_START__ = .);

View File

@@ -40,8 +40,12 @@ SECTIONS
*(.entry2)
*(.text)
*(.rodata)
*(.gnu.linkonce.r*)
*(.rodata1)
*(.gnu.linkonce.t.*)
*(.descriptors)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
*(rom_ver)
etext = ALIGN(0x10);
_etext = .;
@@ -71,6 +75,7 @@ SECTIONS
{
*(.data)
*(.data1)
*(.gnu.linkonce.d.*)
PROVIDE (__SDATA_START__ = .);
*(.sdata)
} > ram

View File

@@ -44,13 +44,14 @@ SECTIONS
.text :
{
*(.text)
*(.gnu.linkonce.t.*)
*(.descriptors)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
} =0
.init : { *(.init) } =0
.fini : { *(.fini) } =0
.rodata : { *(.rodata) }
.rodata : { *(.rodata) *(.gnu.linkonce.r*) }
.rodata1 : { *(.rodata1) }
_etext = .;
PROVIDE (etext = .);
@@ -78,6 +79,7 @@ SECTIONS
.data :
{
*(.data)
*(.gnu.linkonce.d.*)
CONSTRUCTORS
}
PROVIDE (__EXCEPT_START__ = .);

View File

@@ -53,13 +53,14 @@ SECTIONS
.text :
{
*(.text)
*(.gnu.linkonce.t.*)
*(.descriptors)
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)
} >RAM
.init : { *(.init) } >RAM
.fini : { *(.fini) } >RAM
.rodata : { *(.rodata) } >RAM
.rodata : { *(.rodata) *(.gnu.linkonce.r*) } >RAM
.rodata1 : { *(.rodata1) } >RAM
_etext = .;
PROVIDE (etext = .);
@@ -86,6 +87,7 @@ SECTIONS
.data :
{
*(.data)
*(.gnu.linkonce.d.*)
CONSTRUCTORS
} >RAM
PROVIDE (__EXCEPT_START__ = .);