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.
+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
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.
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"