From: Alan Modra Date: Thu, 17 Mar 2005 22:51:09 +0000 (+0000) Subject: * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0fb531188f6fb04f3d381e7714e4564231254122;p=binutils-gdb.git * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2 input sections into .sdata and .sbss output respectively. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 2f2c9b5c118..e1a12534bf8 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2005-03-18 Alan Modra + + * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2 + input sections into .sdata and .sbss output respectively. + 2005-03-16 David Heine Bob Wilson diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index e92bd6c5471..96b7829d28f 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -120,6 +120,7 @@ if test -z "${NO_SMALL_DATA}"; then { ${RELOCATING+PROVIDE (__sbss_start = .);} ${RELOCATING+PROVIDE (___sbss_start = .);} + ${CREATE_SHLIB+*(.sbss2 .sbss2.* .gnu.linkonce.sb2.*)} *(.dynsbss) *(.sbss${RELOCATING+ .sbss.* .gnu.linkonce.sb.*}) *(.scommon) @@ -133,6 +134,7 @@ if test -z "${NO_SMALL_DATA}"; then .sdata ${RELOCATING-0} : { ${RELOCATING+${SDATA_START_SYMBOLS}} + ${CREATE_SHLIB+*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)} *(.sdata${RELOCATING+ .sdata.* .gnu.linkonce.s.*}) }" SDATA2=".sdata2 ${RELOCATING-0} : { *(.sdata2${RELOCATING+ .sdata2.* .gnu.linkonce.s2.*}) }" @@ -383,8 +385,6 @@ cat <