[Bug lto/91299] LTO inlines a weak definition in presence of a non-weak definition from an ELF file
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 31 08:34:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91299
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #4)
> You want to look at the output of the linker resolution file (compile with
> -v -save-temps and look for -fresolution=<filename>). The linker probably
> tells
> GCC that its "weak" foo() definition is prevailing. This either makes it
> a non-bug or a binutils bug then.
$ cat weakdef.res
1
weakdef.o 2
199 b48787268b6fb34e PREEMPTED_REG foo
202 b48787268b6fb34e PREVAILING_DEF main
More information about the Gcc-bugs
mailing list