Override the previous definition from IR object
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2018 23:39:49 +0000 (15:39 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 7 Dec 2018 23:40:02 +0000 (15:40 -0800)
commitfbcc8bafeb413a111cd3caab39b3ab57d5b8ce93
tree4437adb9b4b852c95fdf3f3b1a841bf3d7ea6a96
parentd9c859da9fff9de47a33f52d75a6fef2495b3fc1
Override the previous definition from IR object

Mark the previous definition from IR object as undefined so that the
generic linker will override it.

bfd/

PR ld/23958
* elflink.c (_bfd_elf_add_default_symbol): Override the previous
definition from IR object.

ld/

PR ld/23958
* testsuite/ld-plugin/lto.exp: Run PR ld/23958 test.
* testsuite/ld-plugin/pr23958.c: New file.
* testsuite/ld-plugin/pr23958.t: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-plugin/lto.exp
ld/testsuite/ld-plugin/pr23958.c [new file with mode: 0644]
ld/testsuite/ld-plugin/pr23958.t [new file with mode: 0644]