diff --git a/contrib/binutils/bfd/elf32-i386.c b/contrib/binutils/bfd/elf32-i386.c index ee18864be07..1a3e0e6779a 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 2d4f221585d..c7963da73fe 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.