aboutsummaryrefslogtreecommitdiff
path: root/ld/emulparams
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2013-03-14 08:56:05 +0000
committerJakub Jelinek <jakub@redhat.com>2013-03-14 08:56:05 +0000
commit6f2ef5f590ac789d01b27e3463d0d69cb339b4e4 (patch)
tree2102bf78d7dea4fed46c1d7a94abf2bfa98f05ef /ld/emulparams
parent3f43bc09fa4d7455f1c54c7df66f89eac8987034 (diff)
downloadgdb-6f2ef5f590ac789d01b27e3463d0d69cb339b4e4.zip
gdb-6f2ef5f590ac789d01b27e3463d0d69cb339b4e4.tar.gz
gdb-6f2ef5f590ac789d01b27e3463d0d69cb339b4e4.tar.bz2
* emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
aarch64linux* emulations.
Diffstat (limited to 'ld/emulparams')
-rw-r--r--ld/emulparams/aarch64linux.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/emulparams/aarch64linux.sh b/ld/emulparams/aarch64linux.sh
index a5a2500..4a0fca9 100644
--- a/ld/emulparams/aarch64linux.sh
+++ b/ld/emulparams/aarch64linux.sh
@@ -34,3 +34,13 @@ OTHER_SECTIONS='.note.gnu.arm.ident 0 : { KEEP (*(.note.gnu.arm.ident)) }'
ATTRS_SECTIONS='.ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP (*(.gnu.attributes)) }'
# Ensure each PLT entry is aligned to a cache line.
PLT=".plt ${RELOCATING-0} : ALIGN(16) { *(.plt)${IREL_IN_PLT+ *(.iplt)} }"
+
+# Linux modifies the default library search path to first include
+# a 64-bit specific directory.
+case "$target" in
+ aarch64*-linux*)
+ case "$EMULATION_NAME" in
+ aarch64linux*) LIBPATH_SUFFIX=64 ;;
+ esac
+ ;;
+esac