http://sourceware.org/bugzilla/show_bug.cgi?id=11539

--- Comment #1 from sourceware at jf dot hanne.name 2011-03-12 14:21:54 UTC ---
Created attachment 5301
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5301
implement --gc-sections for coff (first shot)

- Mostly a copy and paste from elflink.c to cofflink.c
- This is only a first try; however, it reduces the size of a statically
compiled wxWidgets app from 5.1 MB to 3.8 MB, so it does something useful for
me; YMMV
- I’m by far no COFF export; some linker guru will need to review the patch and
comment on all the "FIXME" comments
- I have not yet tried to generate a DLL with gc enabled
- Somehow the entry symbol does not get into _bfd_coff_gc_keep so no gc mark
root is available; as a workaround, "-Wl,--undefined=_WinMainCRTStartup" should
be used

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to