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)
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

index f1f7b74..b4d3759 100644 (file)
@@ -1,3 +1,13 @@
+2016-04-04  Nick Clifton  <nickc@redhat.com>
+
+       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.
+
 2016-03-31  Alan Modra  <amodra@gmail.com>
 
        * ldlang.c (TO_ADDR, TO_SIZE, opb_shift): Move earlier in file.