binutils 2.25 linkers: Set default interpreter to valid path
authorJohn Marino <draco@marino.st>
Mon, 29 Aug 2016 19:10:42 +0000 (14:10 -0500)
committerJohn Marino <draco@marino.st>
Mon, 29 Aug 2016 19:10:42 +0000 (14:10 -0500)
I originally thought these interpreter definitions didn't affect anything,
but they may explain random stderr messages during building.  In any case,
it doesn't hurt to correct the definitions and this was also done for
devel/binutils in dports.

contrib/binutils-2.25/README.DRAGONFLY
contrib/binutils-2.25/bfd/elf64-x86-64.c
contrib/binutils-2.25/gold/x86_64.cc

index 32c3341..1fba3c7 100644 (file)
@@ -12,4 +12,6 @@ A list of files and directories removed is in README.DELETED
 
 Local modifications applied to following files:
        bfd/bfdver.h (new)
+       bfd/elf64-x86-64.c
+       gold/x86_64.cc
        ld/ldlex.l
index 18983e8..80d5dac 100644 (file)
@@ -521,7 +521,7 @@ elf_x86_64_write_core_note (bfd *abfd, char *buf, int *bufsiz,
 /* The name of the dynamic interpreter.         This is put in the .interp
    section.  */
 
-#define ELF64_DYNAMIC_INTERPRETER "/lib/ld64.so.1"
+#define ELF64_DYNAMIC_INTERPRETER "/libexec/ld-elf.so.2"
 #define ELF32_DYNAMIC_INTERPRETER "/lib/ldx32.so.1"
 
 /* If ELIMINATE_COPY_RELOCS is non-zero, the linker will try to avoid
index 10c75a2..7e63514 100644 (file)
@@ -1021,7 +1021,7 @@ const Target::Target_info Target_x86_64<64>::x86_64_info =
   true,                        // is_default_stack_executable
   true,                        // can_icf_inline_merge_sections
   '\0',                        // wrap_char
-  "/lib/ld64.so.1",     // program interpreter
+  "/libexec/ld-elf.so.2",     // program interpreter
   0x400000,            // default_text_segment_address
   0x1000,              // abi_pagesize (overridable by -z max-page-size)
   0x1000,              // common_pagesize (overridable by -z common-page-size)