Fix skip.exp test failure observed with gcc-9.2.0
[deliverable/binutils-gdb.git] / ld / emulparams / elf32bmipn32.sh
index c26b6b3dcb2ea4369839a83b223f7ab0e99c72a6..501aaef47b8c1c00366e875a87141690d0a6eb98 100644 (file)
@@ -1,4 +1,4 @@
-. ${srcdir}/emulparams/elf32bmipn32-defs.sh
+source_sh ${srcdir}/emulparams/elf32bmipn32-defs.sh
 OUTPUT_FORMAT="elf32-nbigmips"
 BIG_OUTPUT_FORMAT="elf32-nbigmips"
 LITTLE_OUTPUT_FORMAT="elf32-nlittlemips"
@@ -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.
This page took 0.04343 seconds and 4 git commands to generate.