]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Move Solaris/sparcv9 TEXT_START_ADDR to elf64_sparc_sol2.sh
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 31 Aug 2025 10:14:36 +0000 (12:14 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Sun, 31 Aug 2025 10:14:36 +0000 (12:14 +0200)
While looking at the Solaris versions of the program header p_vaddr and
p_align values of the text and data segments, I noticed that the
Solaris/sparcv9 version of TEXT_START_ADDR is defined in a shared file.
Since there's a Solaris/sparcv9 specific file now
(ld/emulparams/elf64_sparc_sol2.sh), it seems cleaner to move it there.

Tested on {sparcv9,sparc}-sun-solaris2.11 and
{sparc64,sparc}-unknown-linux-gnu.

2025-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

ld:
* emulparams/elf64_sparc.sh (TEXT_START_ADDR): Move ...
* emulparams/elf64_sparc_sol2.sh (TEXT_START_ADDR): ... here.

ld/ChangeLog
ld/emulparams/elf64_sparc.sh
ld/emulparams/elf64_sparc_sol2.sh

index 175aea6a7a6262c4452fee0c4561427921dc9b7f..cefb10008266274a803104471f8a55c59fd03d9c 100644 (file)
@@ -1,3 +1,8 @@
+2025-08-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * emulparams/elf64_sparc.sh (TEXT_START_ADDR): Move ...
+       * emulparams/elf64_sparc_sol2.sh (TEXT_START_ADDR): ... here.
+
 2025-08-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        * testsuite/ld-shared/shared.exp (shared (non PIC)): Update
index 8ae29ad78c0f5f16d88899f6a7507e1b8abeecc2..afbf2e6a475ab85a7dbfc48e3df46700bc8531bc 100644 (file)
@@ -12,15 +12,7 @@ GENERATE_SHLIB_SCRIPT=yes
 GENERATE_PIE_SCRIPT=yes
 NOP=0x01000000
 NO_SMALL_DATA=yes
-
-case "$target" in
-  sparc*-solaris*)
-    TEXT_START_ADDR=0x100000000
-    ;;
-  *)
-    TEXT_START_ADDR=0x100000
-    ;;
-esac
+TEXT_START_ADDR=0x100000
 
 # Treat a host that matches the target with the possible exception of "64"
 # and "v7", "v8", "v9" in the name as if it were native.
index b32c5be6949101b6316f30a3370889599b0af929..e17f7873e6474876107bc4c2c09899e7bd435e30 100644 (file)
@@ -1,4 +1,5 @@
 source_sh ${srcdir}/emulparams/elf64_sparc.sh
 source_sh ${srcdir}/emulparams/solaris2.sh
+TEXT_START_ADDR=0x100000000
 EXTRA_EM_FILE=solaris2
 OUTPUT_FORMAT="elf64-sparc-sol2"