On Tue, 29 Sep 2020 22:31:28 +0200, Mark Wielaard wrote:
Note that you are using -ffunction-sections together with -flto.
With -flto you don't need -ffunction-sections.
-ffunction sections might cause functions to be dropped by the linker
without updating the DWARF DIEs, causing things like a zero
Just using -flto should not cause such issues.
Thanks for this investigation. You are right in gcc -flto binaries I cannot
find these dead DIEs.
Found C++ with LTO in libabigail, libreoffice, powertop. Surprisingly gcc has
LTO turned off.