repost: why doesn't i686-pc-mingw32-ld offer gc-sections?
Adam Megacz
adam@megacz.com
Sun Jan 13 22:41:00 GMT 2002
Ian Lance Taylor <ian@airs.com> writes:
> No, it's possible. But it probably doesn't work for dynamically
> linked executables, so it probably won't help you for Windows. Plus
> you'd have to have ELF versions of any libraries you use.
Hrm. One other approach -- is there any binutils command I can issue
to delete a section from a .o?
I have a program that can figure out which methods are
"unreachable". Along with -ffunction-sections, I could probably just
manually drop the sections/functions I don't need.
- a
More information about the Binutils
mailing list