From add0545d820f261e9969c650908c79aeeafe3e17 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 6 Oct 1999 18:05:39 +0000 Subject: Added sections as required by C++ and ELF. --- c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds | 4 +++- c/src/lib/libbsp/powerpc/eth_comm/startup/linkcmds | 5 +++++ c/src/lib/libbsp/powerpc/ppcn_60x/startup/linkcmds | 4 +++- c/src/lib/libbsp/powerpc/score603e/startup/linkcmds | 4 +++- 4 files changed, 14 insertions(+), 3 deletions(-) (limited to 'c/src/lib/libbsp') diff --git a/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds b/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds index 52e379d8a4..e0059e0e7c 100644 --- a/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/dmv177/startup/linkcmds @@ -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__ = .); diff --git a/c/src/lib/libbsp/powerpc/eth_comm/startup/linkcmds b/c/src/lib/libbsp/powerpc/eth_comm/startup/linkcmds index d805fedf39..d2a072876f 100644 --- a/c/src/lib/libbsp/powerpc/eth_comm/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/eth_comm/startup/linkcmds @@ -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 diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/linkcmds b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/linkcmds index 7f4f3cf330..31077da013 100644 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/linkcmds @@ -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__ = .); diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/linkcmds b/c/src/lib/libbsp/powerpc/score603e/startup/linkcmds index 9b452bc0c0..b3e5b6231b 100644 --- a/c/src/lib/libbsp/powerpc/score603e/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/score603e/startup/linkcmds @@ -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__ = .); -- cgit v1.2.3