]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - bfd/ChangeLog
Make sure that undefined symbols added to the linker command line via the -u option...
authorNick Clifton <nickc@redhat.com>
Mon, 23 Oct 2017 17:16:49 +0000 (18:16 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 23 Oct 2017 17:16:49 +0000 (18:16 +0100)
commit66cae56016a12f7cbdc94be6f82c1cad1c59b521
treea89554827cf870a421e3af26f6b7d6c389abefe4
parentfe4e2a3c9281851c9da99a6e36a2bc96e4279476
Make sure that undefined symbols added to the linker command line via the -u option appear in the output executable, if they have not been resolved.

PR 22319
bfd * elflink.c (elf_link_output_extsym): Keep global undefined
symbols if they have been marked as needed.

ld * testsuite/ld-elf/pr22310.s: New test source file.
* testsuite/ld-elf/pr22310.d: New test driver.
* testsuite/ld-mmix/undef-3.d: Update expected output from readelf.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-elf/pr22319.d [new file with mode: 0644]
ld/testsuite/ld-elf/pr22319.s [new file with mode: 0644]
ld/testsuite/ld-mmix/undef-3.d