From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74034 invoked by alias); 10 Jul 2018 13:12:35 -0000 Mailing-List: contact elfutils-devel-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Post: List-Help: List-Subscribe: Sender: elfutils-devel-owner@sourceware.org Received: (qmail 73965 invoked by uid 48); 10 Jul 2018 13:12:30 -0000 From: "mliska at suse dot cz" To: elfutils-devel@sourceware.org Subject: [Bug general/23370] run-next-cfi-self.sh doesn't handle compressed ELF sections Date: Tue, 10 Jul 2018 13:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: general X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mliska at suse dot cz X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2018-q3/txt/msg00012.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=3D23370 --- Comment #2 from Martin Liska --- (In reply to Mark Wielaard from comment #1) > Although relocations in ET_REL files could be an issue, they aren't actua= lly > 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. >=20 > [We do really need some easier way to apply simple relocations when deali= ng > with ET_REL files (currently you need to create a Dwfl, which is a bit > overkill in this case).] >=20 > The real issue in this case is that the toolchain that created this test > file (size.o) used ELF debug section compression: >=20 > [35] .debug_frame PROGBITS 00000000 0057e4 0000c5 0 C 0= =20=20 > 0 4 > [ELF ZLIB (1) 000154 4] >=20 > (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.) >=20 > So the real fix is to just uncompress the section in the test: >=20 The suggested patch works for me as we in openSUSE have enabled compression= of debug info section in gas for all targets. --=20 You are receiving this mail because: You are on the CC list for the bug.