EXECUTABLE_SYMBOLS -> OTHER_SYMBOLS
authorAlan Modra <amodra@gmail.com>
Sat, 2 Jun 2018 09:16:03 +0000 (18:46 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 6 Jun 2018 23:40:15 +0000 (09:10 +0930)
EXECUTABLE_SYMBOLS is supposed to be true to its name, only defining
symbols for the executable.

* emulparams/elf64bmip.sh (EXECUTABLE_SYMBOLS): Don't define.
(OTHER_SYMBOLS): Define this instead.
* emulparams/elf32bmipn32.sh (EXECUTABLE_SYMBOLS): Don't define.
(OTHER_SYMBOLS): Define similarly to elf64bmip.sh.
* emulparams/elf64hppa.sh (EXECUTABLE_SYMBOLS): Don't define.
(OTHER_SYMBOLS): Define instead.

ld/ChangeLog
ld/emulparams/elf32bmipn32.sh
ld/emulparams/elf64bmip.sh
ld/emulparams/elf64hppa.sh

index f12b6bd27e828b8c1724ad009d7a1ea4be273b32..070e21d2a4d3bbd91918a21c7a7893001d9e185b 100644 (file)
@@ -1,3 +1,12 @@
+2018-06-07  Alan Modra  <amodra@gmail.com>
+
+       * emulparams/elf64bmip.sh (EXECUTABLE_SYMBOLS): Don't define.
+       (OTHER_SYMBOLS): Define this instead.
+       * emulparams/elf32bmipn32.sh (EXECUTABLE_SYMBOLS): Don't define.
+       (OTHER_SYMBOLS): Define similarly to elf64bmip.sh.
+       * emulparams/elf64hppa.sh (EXECUTABLE_SYMBOLS): Don't define.
+       (OTHER_SYMBOLS): Define instead.
+
 2018-06-07  Alan Modra  <amodra@gmail.com>
 
        * emulparams/elf32_tic6x_le.sh (EXECUTABLE_SYMBOLS): Don't define.
index c26b6b3dcb2ea4369839a83b223f7ab0e99c72a6..4ad66810558a327a34ad04fe81b30a28115484d6 100644 (file)
@@ -6,10 +6,12 @@ SHLIB_TEXT_START_ADDR=0x5ffe0000
 COMMONPAGESIZE="CONSTANT (COMMONPAGESIZE)"
 
 # IRIX6 defines these symbols.  0x34 is the size of the ELF header.
-EXECUTABLE_SYMBOLS="
+OTHER_SYMBOLS="
   __dso_displacement = 0;
-  __elf_header = ${TEXT_START_ADDR};
-  __program_header_table = ${TEXT_START_ADDR} + 0x34;
+  ${CREATE_SHLIB-${CREATE_PIE-__elf_header = ${TEXT_START_ADDR};}}
+  ${CREATE_SHLIB+__elf_header = ${SHLIB_TEXT_START_ADDR};}
+  ${CREATE_PIE+__elf_header = ${SHLIB_TEXT_START_ADDR};}
+  __program_header_table = __elf_header + 0x34;
 "
 
 # There are often dynamic relocations against the .rodata section.
index 0df65285f5d1b8785cc9717c9a20062d01dc4f80..281f516916dada7c4ee0adc6388567aef0442eba 100644 (file)
@@ -5,7 +5,7 @@ LITTLE_OUTPUT_FORMAT="elf64-littlemips"
 SHLIB_TEXT_START_ADDR=0x3ffffe0000
 
 # IRIX6 defines these symbols.  0x40 is the size of the ELF header.
-EXECUTABLE_SYMBOLS="
+OTHER_SYMBOLS="
   __dso_displacement = 0;
   ${CREATE_SHLIB-${CREATE_PIE-__elf_header = ${TEXT_START_ADDR};}}
   ${CREATE_SHLIB+__elf_header = ${SHLIB_TEXT_START_ADDR};}
index eeeadeafcaf797907c5576742842276fe49072d2..1ed32f9721daf6ff1fc5dd60d10b7007085fd490 100644 (file)
@@ -67,7 +67,7 @@ PLT_BEFORE_GOT=
 TEXT_DYNAMIC=
 
 # The linker is required to define these two symbols.
-EXECUTABLE_SYMBOLS='PROVIDE (__SYSTEM_ID = 0x214); PROVIDE (_FPU_STATUS = 0x0);'
+OTHER_SYMBOLS='PROVIDE (__SYSTEM_ID = 0x214); PROVIDE (_FPU_STATUS = 0x0);'
 # The PA64 ELF port needs two additional initializer sections and also wants
 # a start/end symbol pair for the .init and .fini sections.
 INIT_START='KEEP (*(.HP.init)); PROVIDE (__preinit_start = .); KEEP (*(.preinit)); PROVIDE (__preinit_end = .); PROVIDE (__init_start = .);'