Hi Richard, > This joint work rewrites LTO debug section copying to not leave > discarded sections around as SHT_NULL but to really discard them > and deal with the fallout (remapping all remaining section references). > This is to avoid diagnostics from the Solaris linker which doesn't > like those. > > LTO bootstrapped on x86_64-unknown-linux-gnu, I also tested the > "incredibly large # of sections" testcase to verify SHN_XINDEX > handling. A regular bootstrap & test run is currently in progress. > > Rainer, can you check this patch on Solaris? Maybe we can finally > close that PR ...
I did so last night and we're almost there: only (part of) the gcc.dg/debug/pr41893-1.c -gdwarf-2 -g3 failure remains. I'll report the details in the PR. Thanks a lot for all your work on this. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University