public inbox for
 help / color / mirror / Atom feed
From: "mark at klomp dot org" <>
Subject: [Bug default/24344] [dwz] Support relocatable elf
Date: Sun, 13 Sep 2020 14:03:58 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Mark Wielaard <mark at klomp dot org> changed:

           What    |Removed                     |Added
                 CC|                            |mark at klomp dot org

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
(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-strip
--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)

                             Similar to --reloc-debug-sections, but resolve all
                             trivial relocations between debug sections in
                             place.  No other stripping is performed (operation
                             is not reversable, incompatible with -f, -g,
                             --remove-comment and --remove-section)

That way there are no relocations anymore between the .debug_sections. Which 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 processing
the file.

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

  parent reply	other threads:[~2020-09-13 14:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-01  0:00 [Bug default/24344] New: " vries at gcc dot
2019-01-01  0:00 ` [Bug default/24344] " vries at gcc dot
2020-09-13 14:03 ` mark at klomp dot org [this message]
2020-09-13 14:50 ` mark at klomp dot org
2024-02-05 12:04 ` [Bug default/24344] [dwz] Support relocatable elf (linux kernel modules) mark at klomp dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).