aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.ibm.com>2023-07-04 14:13:34 +0200
committerAndreas Krebbel <krebbel@linux.ibm.com>2023-07-05 14:29:03 +0200
commita5042543d819df8a76ebec8c4d715f244efbab0a (patch)
treea6e56f39e7d112761766035460e74cae3fb2270d /ld/emulparams
parent1f2218d699e9e5146fc84b24460b63a864d65b04 (diff)
downloadbinutils-a5042543d819df8a76ebec8c4d715f244efbab0a.zip
binutils-a5042543d819df8a76ebec8c4d715f244efbab0a.tar.gz
binutils-a5042543d819df8a76ebec8c4d715f244efbab0a.tar.bz2
Align linkerscript symbols according to ABI
Apply ABI specific alignment to symbols generated in the default linker script.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/elf64_s390.sh1
-rw-r--r--ld/emulparams/elf_s390.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/ld/emulparams/elf64_s390.sh b/ld/emulparams/elf64_s390.sh
index 899efd7..d0a2a59 100644
--- a/ld/emulparams/elf64_s390.sh
+++ b/ld/emulparams/elf64_s390.sh
@@ -17,6 +17,7 @@ EXTRA_EM_FILE=s390
IREL_IN_PLT=
SEPARATE_GOTPLT=0
test -z "$RELRO" && unset SEPARATE_GOTPLT
+SYMBOL_ABI_ALIGNMENT=2
# Treat a host that matches the target with the possible exception of "x"
# in the name as if it were native.
diff --git a/ld/emulparams/elf_s390.sh b/ld/emulparams/elf_s390.sh
index cb1c6b5..1b2fca3 100644
--- a/ld/emulparams/elf_s390.sh
+++ b/ld/emulparams/elf_s390.sh
@@ -12,3 +12,4 @@ GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes
IREL_IN_PLT=
+SYMBOL_ABI_ALIGNMENT=2