* scripttempl/elf.sc: Move non-text .dynamic section before
authorAlan Modra <amodra@gmail.com>
Thu, 9 Aug 2001 14:25:59 +0000 (14:25 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Aug 2001 14:25:59 +0000 (14:25 +0000)
.plt/.got/.sdata* group.
(OTHER_GOT_SECTIONS): Move to immediately after .got.
(OTHER_SDATA_SECTIONS): Add.
* emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
OTHER_GOT_SECTIONS.
* emulparams/crislinux.sh: Likewise.
* emulparams/elf32b4300.sh: Likewise.
* emulparams/elf32bmip.sh: Likewise.
* emulparams/elf32bmipn32.sh: Likewise.
* emulparams/elf32bsmip.sh: Likewise.
* emulparams/elf32btsmip.sh: Likewise.
* emulparams/elf32ebmip.sh: Likewise.
* emulparams/elf32elmip.sh: Likewise.
* emulparams/elf32l4300.sh: Likewise.
* emulparams/elf32lmip.sh: Likewise.
* emulparams/elf32lsmip.sh: Likewise.
* emulparams/elf32ltsmip.sh: Likewise.
* emulparams/elf64bmip.sh: Likewise.
* emulparams/elf64btsmip.sh: Likewise.
* emulparams/elf64ltsmip.sh: Likewise.

18 files changed:
ld/ChangeLog
ld/emulparams/criself.sh
ld/emulparams/crislinux.sh
ld/emulparams/elf32b4300.sh
ld/emulparams/elf32bmip.sh
ld/emulparams/elf32bmipn32.sh
ld/emulparams/elf32bsmip.sh
ld/emulparams/elf32btsmip.sh
ld/emulparams/elf32ebmip.sh
ld/emulparams/elf32elmip.sh
ld/emulparams/elf32l4300.sh
ld/emulparams/elf32lmip.sh
ld/emulparams/elf32lsmip.sh
ld/emulparams/elf32ltsmip.sh
ld/emulparams/elf64bmip.sh
ld/emulparams/elf64btsmip.sh
ld/emulparams/elf64ltsmip.sh
ld/scripttempl/elf.sc

index 27e96573da595315ee2e0a65dc414852df0309b8..683c6eed9e559f99a9f71c6d61f20db4f1ce3270 100644 (file)
@@ -1,3 +1,27 @@
+2001-08-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * scripttempl/elf.sc: Move non-text .dynamic section before
+       .plt/.got/.sdata* group.
+       (OTHER_GOT_SECTIONS): Move to immediately after .got.
+       (OTHER_SDATA_SECTIONS): Add.
+       * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
+       OTHER_GOT_SECTIONS.
+       * emulparams/crislinux.sh: Likewise.
+       * emulparams/elf32b4300.sh: Likewise.
+       * emulparams/elf32bmip.sh: Likewise.
+       * emulparams/elf32bmipn32.sh: Likewise.
+       * emulparams/elf32bsmip.sh: Likewise.
+       * emulparams/elf32btsmip.sh: Likewise.
+       * emulparams/elf32ebmip.sh: Likewise.
+       * emulparams/elf32elmip.sh: Likewise.
+       * emulparams/elf32l4300.sh: Likewise.
+       * emulparams/elf32lmip.sh: Likewise.
+       * emulparams/elf32lsmip.sh: Likewise.
+       * emulparams/elf32ltsmip.sh: Likewise.
+       * emulparams/elf64bmip.sh: Likewise.
+       * emulparams/elf64btsmip.sh: Likewise.
+       * emulparams/elf64ltsmip.sh: Likewise.
+
 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
 
        * genscripts.sh: Source the emulparams script before each output
index b2576342a1a1bea306c9b5a6216ea700af5a9cb4..141ab518a25759e174c03b36a677d7f77e5bdedc 100644 (file)
@@ -36,7 +36,7 @@ OTHER_READONLY_SECTIONS='PROVIDE (__Etext = .);'
 DATA_START_SYMBOLS='PROVIDE (__Sdata = .);'
 
 # Smuggle an "OTHER_DATA_END_SYMBOLS" here.
-OTHER_GOT_SECTIONS='PROVIDE (__Edata = .);'
+OTHER_SDATA_SECTIONS='PROVIDE (__Edata = .);'
 
 # If .bss does not immediately follow .data but has its own start
 # address, we can't get to it with OTHER_BSS_SYMBOLS, neither can we
index c5ff27f5686ce3ddbb93e60d0521521c77cdd659..e33b462d4bbc319a87357ff9b68b6bf40062403a 100644 (file)
@@ -26,7 +26,7 @@ OTHER_READONLY_SECTIONS='PROVIDE (__Etext = .);'
 DATA_START_SYMBOLS='PROVIDE (__Sdata = .);'
 
 # Smuggle an "OTHER_DATA_END_SYMBOLS" here.
-OTHER_GOT_SECTIONS='PROVIDE (__Edata = .);'
+OTHER_SDATA_SECTIONS='PROVIDE (__Edata = .);'
 OTHER_BSS_SYMBOLS='PROVIDE (__Sbss = .);'
 OTHER_BSS_END_SYMBOLS='PROVIDE (__Ebss = .);'
 
index 24f8d98eab0cb865cdfa97232b8ff3e7c685dc3b..88626a49241b37802abb5e29b8938cb7267be673 100644 (file)
@@ -9,7 +9,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 473c41169e0033f399462095327fe36527690aac..0c07663dc9201a331751850cfab9b4ae7add4bb0 100644 (file)
@@ -13,7 +13,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 56f42a9b2964773a61eb5e1514fa6910f9241d3f..b0608081b9f69075f173cc57fc55686747e35732 100755 (executable)
@@ -17,7 +17,7 @@ ENTRY=__start
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
   .srdata : { *(.srdata) }
index 09f1307643701368d4ed7339604285f40e2e3fb4..78421d19e662907c52fb2ae7dfb84e5958a7d156 100644 (file)
@@ -13,7 +13,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index f6d1cf265bec17f483fa55822f9913d10d93bfce..9c8e344a7488f8274c1aec96bb3c1835fc482ba3 100644 (file)
@@ -13,7 +13,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 00ea8fd9c964166fe39d4bbd381ebf627dba7e9b..14eb3186e822a12172c8c803af0ddb069f873168 100644 (file)
@@ -10,7 +10,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index cf008c8f117345b2832c8818abce5ef7f1c854e4..865553c924c707772fd436c17317ff639e84163d 100644 (file)
@@ -10,7 +10,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 690de88b3aaf0496498596b2e58966c350b8ed45..4bd48e8fad18471c2de6d7a88f20cf18584cde77 100644 (file)
@@ -9,7 +9,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 23312f44acaed8ee4a0617292d45fb03df761dc9..99a9dd8338ebae7febfedb4f42c3677301ae45c7 100644 (file)
@@ -13,7 +13,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 4bdc8a10e698b9edc1fe46cb1e30437624a3ebfa..4f792e24022116365c019f073fd3f1655ec9a2f3 100644 (file)
@@ -13,7 +13,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 90d7d64e896db6de7d44d5dfd6fbaaf09ecef82a..443b98fbbe7e17b1c668012cc17ec879086822de 100644 (file)
@@ -13,7 +13,7 @@ OTHER_TEXT_SECTIONS='*(.mips16.fn.*) *(.mips16.call.*)'
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index a4852d53cf42d7588c67b12f27bc42319d71a874..8610e2b3e9d27db32380dbf8a52ce332af1f09b3 100755 (executable)
@@ -20,7 +20,7 @@ ENTRY=__start
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
   .srdata : { *(.srdata) }
index f3d917cfb7657f4e0753fb371262714a3bc79de1..69edab9d292abfc30a41225d0f94657676cea1d1 100644 (file)
@@ -25,7 +25,7 @@ ENTRY=__start
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index ac2dcfc76b4a1928bccf1b1a51c20aae2c27ee2b..c6d0e570159fa7d8e15861a95eb9f7f9bb9455bf 100644 (file)
@@ -25,7 +25,7 @@ ENTRY=__start
 OTHER_GOT_SYMBOLS='
   _gp = ALIGN(16) + 0x7ff0;
 '
-OTHER_GOT_SECTIONS='
+OTHER_SDATA_SECTIONS='
   .lit8 : { *(.lit8) }
   .lit4 : { *(.lit4) }
 '
index 3c1bfb40c1947e18b5301954a4ddf118b853f673..9c03dd6c3d73fe181a267149bff7a9964b032c30 100644 (file)
@@ -17,7 +17,8 @@
 #      DATA_START_SYMBOLS - symbols that appear at the start of the
 #              .data section.
 #      OTHER_GOT_SYMBOLS - symbols defined just before .got.
-#      OTHER_GOT_SECTIONS - sections just after .got and .sdata.
+#      OTHER_GOT_SECTIONS - sections just after .got.
+#      OTHER_SDATA_SECTIONS - sections just after .sdata.
 #      OTHER_BSS_SYMBOLS - symbols that appear at the start of the
 #              .bss section besides __bss_start.
 #      DATA_PLT - .plt should be in data segment, not text segment.
@@ -308,14 +309,15 @@ SECTIONS
   .gcc_except_table : { *(.gcc_except_table) }
   ${WRITABLE_RODATA+${RODATA}}
   ${RELOCATING+${OTHER_READWRITE_SECTIONS}}
+  ${TEXT_DYNAMIC-${DYNAMIC}}
   ${RELOCATING+${CTOR}}
   ${RELOCATING+${DTOR}}
   ${DATA_PLT+${PLT}}
   ${RELOCATING+${OTHER_GOT_SYMBOLS}}
   .got         ${RELOCATING-0} : { *(.got.plt) *(.got) }
+  ${RELOCATING+${OTHER_GOT_SECTIONS}}
   ${CREATE_SHLIB+${SDATA2}}
   ${CREATE_SHLIB+${SBSS2}}
-  ${TEXT_DYNAMIC-${DYNAMIC}}
   /* 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.  */
@@ -326,7 +328,7 @@ SECTIONS
     ${RELOCATING+*(.sdata.*)}
     ${RELOCATING+*(.gnu.linkonce.s.*)}
   }
-  ${RELOCATING+${OTHER_GOT_SECTIONS}}
+  ${RELOCATING+${OTHER_SDATA_SECTIONS}}
   ${RELOCATING+_edata = .;}
   ${RELOCATING+PROVIDE (edata = .);}
   ${RELOCATING+__bss_start = .;}
This page took 0.034743 seconds and 4 git commands to generate.