aboutsummaryrefslogtreecommitdiff
path: root/ld
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
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')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/emulparams/aarch64linux.sh10
2 files changed, 15 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e01cc73..1bb67a3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-14 Jakub Jelinek <jakub@redhat.com>
+
+ * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
+ aarch64linux* emulations.
+
2013-03-07 Alan Modra <amodra@gmail.com>
* ldfile.c (ldfile_open_command_file_1): Return after einfo
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