pe/coff: handle weak defined symbol for gc-sections.
authorTristan Gingold <gingold@adacore.com>
Fri, 31 Mar 2017 13:25:18 +0000 (15:25 +0200)
committerTristan Gingold <gingold@adacore.com>
Fri, 7 Apr 2017 08:03:17 +0000 (10:03 +0200)
commit1fd6d111905e76dfa7af9fbee5229f3f1d360b4c
treecb8f9e966484f2911a9ef1f3d0df62d338701922
parent436252de3e9de546001c4312d0863ce7e10aa200
pe/coff: handle weak defined symbol for gc-sections.

bfd/
* coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
external symbols with a definition.
(_bfd_coff_gc_mark_extra_sections): Fix typo.

ld/
* testsuite/ld-pe/pe.exp: New test.
* testsuite/ld-pe/weakdef-1.s: New test source.
* testsuite/ld-pe/weakdef-1.d: New test.
bfd/ChangeLog
bfd/coffgen.c
ld/ChangeLog
ld/testsuite/ld-pe/pe.exp
ld/testsuite/ld-pe/weakdef-1.d [new file with mode: 0644]
ld/testsuite/ld-pe/weakdef-1.s [new file with mode: 0644]
This page took 0.027469 seconds and 4 git commands to generate.