summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils-2.17
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-11-04 22:53:58 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2017-11-04 22:53:58 +0000
commitd9fa4bd9a3fc4cca904ffcf8f640020d6e0538be (patch)
treeca254e2971b46758ba17bb858ace8a0e4258346c /gnu/usr.bin/binutils-2.17
parentf62b8a875ce265c1684cc9af05545b04e3b21b9a (diff)
Revert recent changes to unbreak ports/net/samba
While it is not clear (to me) why that ports ends up with corrupted shared libs, reverting those changes fixes the issue and should allow us to close p2k17 more smoothly. Discussed with a bunch, ok ajacoutot@ guenther@
Diffstat (limited to 'gnu/usr.bin/binutils-2.17')
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em6
-rw-r--r--gnu/usr.bin/binutils-2.17/ld/lexsup.c4
2 files changed, 0 insertions, 10 deletions
diff --git a/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em b/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em
index 1a3d0123bf5..9fc5229bdcf 100644
--- a/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em
+++ b/gnu/usr.bin/binutils-2.17/ld/emultempl/elf32.em
@@ -2161,13 +2161,7 @@ cat >>e${EMULATION_NAME}.c <<EOF
link_info.flags_1 |= (bfd_vma) DF_1_ORIGIN;
}
else if (strcmp (optarg, "defs") == 0)
-#ifndef __OpenBSD__
- /* we don't link shared objs against libc, so -zdefs/--no-undefined
- usually generates false positives */
link_info.unresolved_syms_in_objects = RM_GENERATE_ERROR;
-#else
- { }
-#endif
else if (strcmp (optarg, "muldefs") == 0)
link_info.allow_multiple_definition = TRUE;
else if (strcmp (optarg, "combreloc") == 0)
diff --git a/gnu/usr.bin/binutils-2.17/ld/lexsup.c b/gnu/usr.bin/binutils-2.17/ld/lexsup.c
index 61e23529ca4..dda6ffe861f 100644
--- a/gnu/usr.bin/binutils-2.17/ld/lexsup.c
+++ b/gnu/usr.bin/binutils-2.17/ld/lexsup.c
@@ -865,12 +865,8 @@ parse_args (unsigned argc, char **argv)
link_info.keep_memory = FALSE;
break;
case OPTION_NO_UNDEFINED:
-#ifndef __OpenBSD__
- /* we don't link shared objs against libc, so -zdefs/--no-undefined
- usually generates false positives */
link_info.unresolved_syms_in_objects
= how_to_report_unresolved_symbols;
-#endif
break;
case OPTION_ALLOW_SHLIB_UNDEFINED:
link_info.unresolved_syms_in_shared_libs = RM_IGNORE;