* ld: map file entries of symbols in static libraries built with LTO
@ 2021-03-21 20:25 christian
2021-04-06 14:32 ` Nick Clifton
0 siblings, 1 reply; 2+ messages in thread
From: christian @ 2021-03-21 20:25 UTC (permalink / raw)
To: binutils
Hello!
When I compile and link an executable against a static library (both with LTO) the map file of the resulting executable is missing the addresses of the symbols in the static library. The only reference I get is a line like this one:
libmylib.a(myfunc.c.o) CMakeFiles/app.dir/main.c.o (symbol from plugin) (myfunc)
The function in question (myfunc in this case) has not been inlined (according to objdump -S).
Why is this happening and what can I do about it?
Thanks for any hints!
Christian
P.S. I'm on GCC 9.3.0 and Binutils 2.36.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: ld: map file entries of symbols in static libraries built with LTO
2021-03-21 20:25 ld: map file entries of symbols in static libraries built with LTO christian
@ 2021-04-06 14:32 ` Nick Clifton
0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2021-04-06 14:32 UTC (permalink / raw)
To: binutils
Hi Christian,
[Sorry for the long delay in replying - I am way behind on my emails...]
> When I compile and link an executable against a static library (both with LTO) the map file of the resulting executable is missing the addresses of the symbols in the static library. The only reference I get is a line like this one:
>
> libmylib.a(myfunc.c.o) CMakeFiles/app.dir/main.c.o (symbol from plugin) (myfunc)
>
> The function in question (myfunc in this case) has not been inlined (according to objdump -S).
>
> Why is this happening and what can I do about it?
Presumably it is because of the LTO compilation, although it is hard to be sure.
If this is still a problem for you, please could you file a bug report here:
https://sourceware.org/bugzilla/enter_bug.cgi?product=binutils
if you can include a small test case to reproduce the problem that would really help.
Cheers
Nick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-06 14:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-21 20:25 ld: map file entries of symbols in static libraries built with LTO christian
2021-04-06 14:32 ` Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).