From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1A362395144A; Sun, 13 Sep 2020 14:03:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1A362395144A From: "mark at klomp dot org" To: dwz@sourceware.org Subject: [Bug default/24344] [dwz] Support relocatable elf Date: Sun, 13 Sep 2020 14:03:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: dwz X-Bugzilla-Component: default X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nobody at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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-BeenThere: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Sep 2020 14:03:59 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D24344 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mark at klomp dot org --- Comment #1 from Mark Wielaard --- (In reply to Tom de Vries from comment #0) > Not sure if this feature would be useful for anything else than loadable > modules. If we are only interested in kernel loadable modules then we could run eu-s= trip --reloc-debug-sections[-only] before running dwz: --reloc-debug-sections Resolve all trivial relocations between debug sections if the removed sections are placed in= a debug file (only relevant for ET_REL files, operation is not reversable, needs -f) --reloc-debug-sections-only Similar to --reloc-debug-sections, but resolve= all trivial relocations between debug sections in place. No other stripping is performed (opera= tion is not reversable, incompatible with -f, -g, --remove-comment and --remove-section) That way there are no relocations anymore between the .debug_sections. Whic= h is fine because although the .ko files are ET_REL you wouldn't link them with = any other object file. dwz should then double check the .ko is really a kernel module on which eu-strip --reloc-debug-sections has been run before process= ing the file. --=20 You are receiving this mail because: You are on the CC list for the bug.=