summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/binutils/bfd/elf32-i386.c4
-rw-r--r--contrib/binutils/bfd/elf64-alpha.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/contrib/binutils/bfd/elf32-i386.c b/contrib/binutils/bfd/elf32-i386.c
index ee18864..1a3e0e6 100644
--- a/contrib/binutils/bfd/elf32-i386.c
+++ b/contrib/binutils/bfd/elf32-i386.c
@@ -251,7 +251,11 @@ elf_i386_is_local_label_name (abfd, name)
/* The name of the dynamic interpreter. This is put in the .interp
section. */
+#if defined(__FreeBSD__)
#define ELF_DYNAMIC_INTERPRETER "/usr/libexec/ld-elf.so.1"
+#else
+#define ELF_DYNAMIC_INTERPRETER "/usr/lib/libc.so.1"
+#endif
/* The size in bytes of an entry in the procedure linkage table. */
diff --git a/contrib/binutils/bfd/elf64-alpha.c b/contrib/binutils/bfd/elf64-alpha.c
index 2d4f221..c7963da 100644
--- a/contrib/binutils/bfd/elf64-alpha.c
+++ b/contrib/binutils/bfd/elf64-alpha.c
@@ -1032,7 +1032,11 @@ elf64_alpha_info_to_howto (abfd, cache_ptr, dst)
#define MAX_GOT_ENTRIES (64*1024 / 8)
+#if defined(__FreeBSD__)
#define ELF_DYNAMIC_INTERPRETER "/usr/libexec/ld-elf.so.1"
+#else
+#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so"
+#endif
/* Handle an Alpha specific section when reading an object file. This
is called when elfcode.h finds a section with an unknown type.
OpenPOWER on IntegriCloud