On Mon, Sep 28, 2020 at 05:46:08PM +0200, Jan Kratochvil wrote:
On Mon, 28 Sep 2020 17:35:26 +0200, Jakub Jelinek wrote:
> So, was this compiled by GCC or clang?
Fedora Koji package:
lldb-debuginfo-11.0.0-0.2.rc3.fc34.x86_64
GNU GIMPLE 10.2.1 20200916 (Red Hat 10.2.1-4) -m64 -mtune=generic -march=x86-64 -g -g -g
-O2 -O2 -O2 -O2 -fno-openmp -fno-openacc -fcf-protection=none -ffat-lto-objects
-fexceptions -fstack-protector-strong -fasynchronous-unwind-tables
-fstack-clash-protection -fPIC -ffunction-sections -fdata-sections -fltrans
-fplugin=annobin
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
DW_AT_low_pc.
Just using -flto should not cause such issues.
Cheers,
Mark