* [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
* [Bug default/24344] [dwz] Support relocatable elf
2019-01-01 0:00 [Bug default/24344] New: [dwz] Support relocatable elf vries at gcc dot gnu.org
@ 2019-01-01 0:00 ` vries at gcc dot gnu.org
2020-09-13 14:03 ` mark at klomp dot org
` (2 subsequent siblings)
3 siblings, 0 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
Tom de Vries <vries at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P3
CC| |jakub at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug default/24344] [dwz] Support relocatable elf
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
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2020-09-13 14:03 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=24344
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)
--reloc-debug-sections-only
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug default/24344] [dwz] Support relocatable elf
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
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2020-09-13 14:50 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=24344
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=24345
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug default/24344] [dwz] Support relocatable elf (linux kernel modules)
2019-01-01 0:00 [Bug default/24344] New: [dwz] Support relocatable elf vries at gcc dot gnu.org
` (2 preceding siblings ...)
2020-09-13 14:50 ` mark at klomp dot org
@ 2024-02-05 12:04 ` mark at klomp dot org
3 siblings, 0 replies; 5+ messages in thread
From: mark at klomp dot org @ 2024-02-05 12:04 UTC (permalink / raw)
To: dwz
https://sourceware.org/bugzilla/show_bug.cgi?id=24344
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[dwz] Support relocatable |[dwz] Support relocatable
|elf |elf (linux kernel 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).