public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/24344] New: [dwz] Support relocatable elf
@ 2019-01-01  0:00 vries at gcc dot gnu.org
  2019-01-01  0:00 ` [Bug default/24344] " vries at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vries at gcc dot gnu.org @ 2019-01-01  0:00 UTC (permalink / raw)
  To: dwz

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

            Bug ID: 24344
           Summary: [dwz] Support relocatable elf
           Product: dwz
           Version: unspecified
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: default
          Assignee: nobody at sourceware dot org
          Reporter: vries at gcc dot gnu.org
                CC: dwz at sourceware dot org
  Target Milestone: ---

When building openSUSE:Factory/kernel-vanilla I get lots of "is not a shared
library" errors, like f.i.:
...
[ 3916s] dwz:
"./lib/modules/4.20.13-0-vanilla/kernel/sound/usb/6fire/snd-usb-6fire.ko.debug"
is not a shared library
...

This is a file with debug info for a loadable module, which is an ELF
relocatable:
...
$ file
./usr/lib/debug/lib/modules/4.20.13-0-vanilla/kernel/sound/usb/6fire/snd-usb-6fire.ko.debug
./usr/lib/debug/lib/modules/4.20.13-0-vanilla/kernel/sound/usb/6fire/snd-usb-6fire.ko.debug:
ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV),
BuildID[sha1]=5f01e04c17fe8b2f9941b0981ff89ebbe3eb308e, with debug_info, not
stripped
...

Dwz doesn't support relocatables atm. To do so, it would have to add support to
parse and update RELA section related to debug sections.

Not sure if this feature would be useful for anything else than loadable
modules.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-05 12:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-01  0:00 [Bug default/24344] New: [dwz] Support relocatable elf vries at gcc dot gnu.org
2019-01-01  0:00 ` [Bug default/24344] " vries at gcc dot gnu.org
2020-09-13 14:03 ` mark at klomp dot org
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

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).