[Bug general/23370] run-next-cfi-self.sh doesn't handle compressed ELF sections

mliska at suse dot cz sourceware-bugzilla@sourceware.org
Tue Jul 10 13:12:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23370

--- Comment #2 from Martin Liska <mliska at suse dot cz> ---
(In reply to Mark Wielaard from comment #1)
> Although relocations in ET_REL files could be an issue, they aren't actually
> for this test, because the relocations that are there are against the
> addresses inside to .debug_frame section, and we don't care what they are in
> this test case.
> 
> [We do really need some easier way to apply simple relocations when dealing
> with ET_REL files (currently you need to create a Dwfl, which is a bit
> overkill in this case).]
> 
> The real issue in this case is that the toolchain that created this test
> file (size.o) used ELF debug section compression:
> 
> [35] .debug_frame         PROGBITS     00000000 0057e4 0000c5  0 C      0  
> 0  4
>      [ELF ZLIB (1) 000154  4]
> 
> (Oddly enough it seems it only does this for ET_REL files and the linker
> again decompresses again when creating the ET_EXEC/DYN files. Which seems
> horribly inefficient.)
> 
> So the real fix is to just uncompress the section in the test:
> 

The suggested patch works for me as we in openSUSE have enabled compression of
debug info section in gas for all targets.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Elfutils-devel mailing list