[Bug lto/86175] LTO code generator does not respect ld -u option to force symbol inclusion in the link product

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 18 08:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86175

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
With ld 2.30 it seems to work for me with a simple

void foo () {}
int main() { return 0; }

> gcc-8 t.c -flto -O -Wl,-u,foo,--gc-sections -ffunction-sections


More information about the Gcc-bugs mailing list