* scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
authorGeoffrey Keating <geoffk@geoffk.org>
Thu, 7 Oct 1999 02:19:45 +0000 (02:19 +0000)
committerGeoffrey Keating <geoffk@geoffk.org>
Thu, 7 Oct 1999 02:19:45 +0000 (02:19 +0000)
being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
(.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
(.rel.sbss): Make like .rel.bss.
(.rela.sbss): Make like .rel.bss.
(.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
ld -r.
(.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
.dynsbss.

ld/ChangeLog
ld/scripttempl/elf.sc

index 94fd853e9e4c48951a0714199272178fd27283b6..dad40e2d590a48cbe170a2b40dcdae8dd41e5542 100644 (file)
@@ -1,3 +1,15 @@
+1999-10-07  Geoffrey Keating  <geoffk@cygnus.com>
+
+       * scripttempl/elf.sc (.rel.sdata): Combine all the sdata relocs
+       being .rel.sdata, .rel.sdata.*, .rel.gnu.linkonce.s*.
+       (.rela.sdata): Likewise for .rela.sdata.* and .rela.gnu.linkonce.s*.
+       (.rel.sbss): Make like .rel.bss.
+       (.rela.sbss): Make like .rel.bss.
+       (.sdata): Don't include .gnu.linkonce.s.* or .sdata.* when
+       ld -r.
+       (.sbss): Do the same things as for .bss: include SDATA_START_SYMBOLS,
+       .dynsbss.
+
 1999-09-29  Andrew Haley  <aph@cygnus.com>
 
        * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Defer
index 57a825be257d480bcc86fb28418b88f93a270144..58dc7b01df60b4baa1858fba41133a1bbcb933c6 100644 (file)
@@ -169,6 +169,20 @@ SECTIONS
   .rel.got     ${RELOCATING-0} : { *(.rel.got)         }
   .rela.got    ${RELOCATING-0} : { *(.rela.got)                }
   ${OTHER_GOT_RELOC_SECTIONS}
+  .rel.sdata   ${RELOCATING-0} :
+    {
+      *(.rel.sdata)
+      ${RELOCATING+*(.rel.sdata.*)}
+      ${RELOCATING+*(.rel.gnu.linkonce.s*)}
+    }
+  .rela.sdata   ${RELOCATING-0} :
+    {
+      *(.rela.sdata)
+      ${RELOCATING+*(.rela.sdata.*)}
+      ${RELOCATING+*(.rela.gnu.linkonce.s*)}
+    }
+  .rel.sbss    ${RELOCATING-0} : { *(.rel.sbss)                }
+  .rela.sbss   ${RELOCATING-0} : { *(.rela.sbss)       }
   .rel.bss     ${RELOCATING-0} : { *(.rel.bss)         }
   .rela.bss    ${RELOCATING-0} : { *(.rela.bss)                }
   .rel.plt     ${RELOCATING-0} : { *(.rel.plt)         }
@@ -232,7 +246,13 @@ SECTIONS
   /* We want the small data sections together, so single-instruction offsets
      can access them all, and initialized data all before uninitialized, so
      we can shorten the on-disk segment size.  */
-  .sdata   ${RELOCATING-0} : { *(.sdata) *(.sdata.*) *(.gnu.linkonce.s.*) }
+  .sdata   ${RELOCATING-0} : 
+  {
+    ${RELOCATING+${SDATA_START_SYMBOLS}}
+    *(.sdata) 
+    ${RELOCATING+*(.sdata.*)}
+    ${RELOCATING+*(.gnu.linkonce.s.*)}
+  }
   ${RELOCATING+${OTHER_GOT_SECTIONS}}
   ${RELOCATING+_edata = .;}
   ${RELOCATING+PROVIDE (edata = .);}
@@ -240,8 +260,10 @@ SECTIONS
   ${RELOCATING+${OTHER_BSS_SYMBOLS}}
   .sbss    ${RELOCATING-0} :
   {
-   *(.sbss) *(.scommon)
-   ${RELOCATING+*(.sbss.*)}
+    *(.dynsbss)
+    *(.sbss)
+    ${RELOCATING+*(.sbss.*)}
+    *(.scommon)
   }
   .bss     ${RELOCATING-0} :
   {
This page took 0.029769 seconds and 4 git commands to generate.