Re: Can I get rid of LTO information from a LIB?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



PcX <xunxun1982@xxxxxxxxx> writes:

>     If I use "-flto" to build one library, the library usually becomes
> very large.
>     Now I want to remove the lto information to release it, but don't
> want to rebuild the lib.
>     How can I do this?

You can use objcopy -R to remove the LTO sections.  They are ones whose
names start with .gnu.lto.  You can use objdump -h to see the section
names.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux