From ba68a82065f9f9389d80893245d4b41bcd22a765 Mon Sep 17 00:00:00 2001 From: obrien Date: Wed, 12 Apr 2000 03:43:09 +0000 Subject: Slight cleaner code that may be more palatable to the Binutils maintainers. --- contrib/binutils/bfd/elf32-i386.c | 4 ++++ contrib/binutils/bfd/elf64-alpha.c | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'contrib') 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. -- cgit v1.1