Revert "GENERATE_SHLIB_SCRIPT vs. EMBEDDED."
authorAlan Modra <amodra@gmail.com>
Fri, 8 Nov 2019 10:27:07 +0000 (20:57 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 8 Nov 2019 10:37:43 +0000 (21:07 +1030)
This reverts commit f2aaebdb97977ee7a5c83c02af871e758e7d594b.
My reasons for making that change were just plain wrong.

15 files changed:
ld/ChangeLog
ld/emulparams/aarch64elf.sh
ld/emulparams/aarch64elf32.sh
ld/emulparams/arcelf.sh
ld/emulparams/armelf.sh
ld/emulparams/armelf_fbsd.sh
ld/emulparams/armelf_nbsd.sh
ld/emulparams/armelf_vxworks.sh
ld/emulparams/armsymbian.sh
ld/emulparams/elf32bfin.sh
ld/emulparams/elf32microblaze.sh
ld/emulparams/score3_elf.sh
ld/emulparams/shelf.sh
ld/emulparams/shelf_nbsd.sh
ld/emulparams/shelf_uclinux.sh

index ea262034e060b2da84e8ebb0e7e9808b318df30c..ad7cfd5eada5abcc4c3c0c4e9c5fd98cad4521fb 100644 (file)
@@ -1,3 +1,20 @@
+2019-11-08  Alan Modra  <amodra@gmail.com>
+
+       * emulparams/aarch64elf.sh: Revert 2019-11-05 change.
+       * emulparams/aarch64elf32.sh: Likewise.
+       * emulparams/arcelf.sh: Likewise.
+       * emulparams/armelf.sh: Likewise.
+       * emulparams/armelf_fbsd.sh: Likewise.
+       * emulparams/armelf_nbsd.sh: Likewise.
+       * emulparams/armelf_vxworks.sh: Likewise.
+       * emulparams/armsymbian.sh: Likewise.
+       * emulparams/elf32bfin.sh: Likewise.
+       * emulparams/elf32microblaze.sh: Likewise.
+       * emulparams/score3_elf.sh: Likewise.
+       * emulparams/shelf.sh: Likewise.
+       * emulparams/shelf_nbsd.sh: Likewise.
+       * emulparams/shelf_uclinux.sh: Likewise.
+
 2019-11-07  Alan Modra  <amodra@gmail.com>
 
        * emulparams/elf32cr16c.sh: Delete.
index 5c70b556864bc493af69ab0c338291b16ce76727..8f68e517b455df42feada69748069e759dea3bed 100644 (file)
@@ -12,6 +12,9 @@ NO_REL_RELOCS=yes
 TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 
 ENTRY=_start
index a94025a139b514a20a1bf5923fa544ab93f8f617..5a08d9e29f1d1376438b2449698835cf76073799 100644 (file)
@@ -12,6 +12,9 @@ NO_REL_RELOCS=yes
 TEMPLATE_NAME=elf
 EXTRA_EM_FILE=aarch64elf
 
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 
 ENTRY=_start
index b6d8f9fdf763fcd2bdd7f7ed71df9ccc6933a185..625ec3977900773c25e597c0e7f4a1e1343f4436 100644 (file)
@@ -19,3 +19,5 @@ SDATA_START_SYMBOLS='__SDATA_BEGIN__ = . + 0x100;'
 JLI_START_TABLE='__JLI_TABLE__ = .;'
 OTHER_SECTIONS="/DISCARD/ : { *(.__arc_profile_*) }"
 EMBEDDED=yes
+
+GENERATE_SHLIB_SCRIPT=yes
index 8977fd6fea8f6dcd059ead974c270b57dbd39a64..0e3147c1f243a64cce4f05a0016aee8180fb6594 100644 (file)
@@ -32,6 +32,9 @@ OTHER_READONLY_SECTIONS="
 
 DATA_START_SYMBOLS="${CREATE_SHLIB+PROVIDE (}__data_start = .${CREATE_SHLIB+)};"
 
+GENERATE_SHLIB_SCRIPT=yes
+GENERATE_PIE_SCRIPT=yes
+
 ARCH=arm
 MACHINE=
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
index 4428b91a34f1d2299e4a0503ba83e5b2dc9bc008..be88c2f2e0eecc66224a4e97b7edb3bfb20bd953 100644 (file)
@@ -5,7 +5,7 @@ TEXT_START_ADDR=0x00010000
 
 TARGET2_TYPE=got-rel
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
-GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
+
 unset STACK_ADDR
 unset EMBEDDED
index 45954597ee5d4a8bb56d7331295f820092993876..37e1a4afdd0e63cccf21d638c49b1daba2f798ba 100644 (file)
@@ -3,7 +3,5 @@ MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 TEXT_START_ADDR=0x00008000
 TARGET2_TYPE=got-rel
 
-GENERATE_SHLIB_SCRIPT=yes
-GENERATE_PIE_SCRIPT=yes
 unset STACK_ADDR
 unset EMBEDDED
index e344209905eff3b63373afe02f577fb6d125e15e..5f57535feed82431d4a68fab93597053c988d4a7 100644 (file)
@@ -4,4 +4,3 @@ BIG_OUTPUT_FORMAT="elf32-bigarm-vxworks"
 LITTLE_OUTPUT_FORMAT="$OUTPUT_FORMAT"
 MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
 source_sh ${srcdir}/emulparams/vxworks.sh
-GENERATE_SHLIB_SCRIPT=yes
index 183750a5647125a3f4fc3cceab5bebb01b0cb033..1959685f9b488925aef93bfddc01fcff66d888fe 100644 (file)
@@ -8,8 +8,6 @@ TARGET1_IS_REL=1
 TARGET2_TYPE=abs
 # On BPABI systems, program headers should not be mapped.
 EMBEDDED=yes
-# Nonetheless, shared libraries are also supported
-GENERATE_SHLIB_SCRIPT=yes
 
 # As for armelf.sh, but add the SymbianOS-specific
 # .ARM.exidx$${Base,Limit} symbols.
index 6e08035b6f34c12dd5befa72dfdce988f64e1688..8d298b467c9e4ef766396473e40ec10161486676 100644 (file)
@@ -6,6 +6,7 @@ TARGET_PAGE_SIZE=0x1000
 ARCH=bfin
 MACHINE=
 TEMPLATE_NAME=elf
+GENERATE_SHLIB_SCRIPT=yes
 EMBEDDED=yes
 USER_LABEL_PREFIX=_
 EXTRA_EM_FILE=bfin
index 698adb7cf830451ad037143aacb4c6fb4948695e..f867018eb38fb72c9c294f4a66fcf5ddf457055f 100644 (file)
@@ -21,3 +21,6 @@ NOP=0x80000000
 #OTHER_RELOCATING_SECTIONS='PROVIDE (_stack = _end + 0x1000);'
 
 TEMPLATE_NAME=elf
+#GENERATE_SHLIB_SCRIPT=yes
+
+
index 78401876e5fcec287a5947267ae5157fee89d526..7be7883363e9af2b026f93237fbdab9ad92a40a6 100644 (file)
@@ -26,3 +26,4 @@ ARCH=score3
 MACHINE=
 ENTRY=_start
 EMBEDDED=yes
+GENERATE_SHLIB_SCRIPT=yes
index 96c18c07502ce30b84ee8ba80d60dcae140cd83c..63c2ff19dc924220ddf5ae20ca36ace0ea1237e0 100644 (file)
@@ -9,6 +9,7 @@ MAXPAGESIZE=128
 ARCH=sh
 MACHINE=
 TEMPLATE_NAME=elf
+GENERATE_SHLIB_SCRIPT=yes
 EMBEDDED=yes
 # These are for compatibility with the COFF toolchain.
 ENTRY=start
index 57db803d0024f57596beb1c8fee23f3b42e6311b..391399660d8325b8c18467a589b4a8257bb3406d 100644 (file)
@@ -11,7 +11,5 @@ DATA_START_SYMBOLS='PROVIDE (__data_start = .);';
 
 ENTRY=_start
 
-GENERATE_SHLIB_SCRIPT=yes
-GENERATE_PIE_SCRIPT=yes
 unset EMBEDDED
 unset STACK_ADDR
index 41044f028ce2a7561d7b4d4d2e392447f7635945..a22c35a9a8a1340c64b96df6033d9b1fe93d91ad 100644 (file)
@@ -2,4 +2,3 @@ source_sh ${srcdir}/emulparams/shelf.sh
 
 # We do not want a .stack section
 unset STACK_ADDR
-GENERATE_SHLIB_SCRIPT=yes