More fixes for COFF/PE lanker garbage collection.
authorNick Clifton <nickc@redhat.com>
Mon, 4 Apr 2016 12:44:57 +0000 (13:44 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 4 Apr 2016 12:44:57 +0000 (13:44 +0100)
commita061de07e441718d3658be332fd3172d87c7440b
tree79171a39c10bfb3f17c6892013be5248b706ea2b
parent67f101eece4327a7c9e13f257fe76f8082a5e336
More fixes for COFF/PE lanker garbage collection.

PR 19803
* emultempl/pe.em (change_undef): New function.  Encapsulates
duplicated code in pe_fixup_stdcalls and adds the newly defined
sym to the gc root list.
(pe_fixup_stdcall): Use the new function.
* pe-dll.c (process_def_file_and_drectve); Add alias of exported
symbol to gc root list.
ld/ChangeLog