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

View File

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

View File

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

View File

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