summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2000-04-12 03:43:09 +0000
committerobrien <obrien@FreeBSD.org>2000-04-12 03:43:09 +0000
commitba68a82065f9f9389d80893245d4b41bcd22a765 (patch)
tree2d37a75443bce76b617b54b137bfa65e4824bfa4 /contrib
parent3139dfa2c28d99c5f769a2860e0d45fcb1ab54cc (diff)
downloadFreeBSD-src-ba68a82065f9f9389d80893245d4b41bcd22a765.zip
FreeBSD-src-ba68a82065f9f9389d80893245d4b41bcd22a765.tar.gz
Slight cleaner code that may be more palatable to the Binutils maintainers.
Diffstat (limited to 'contrib')
-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