This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFC: Add compressed debug section support to elfutils


I am working on fixing:

https://bugzilla.redhat.com/show_bug.cgi?id=807053

There are a couple issues with compressed debug section support
in elfutils:

1.libdw doesn't handle compressed debug sections with relocations.
check_section tries to handle compressed debug sections. But
It is too late since relocations have been applied already.
2. Dwarf debug section name handling is duplicated in both libdw
and libebl. ebl_debugscn_p is used to check for debug section.
But it doesn't handle compressed debug section wgile libdw does.

libelf doesn't handle DWARF debug sections and I am not if it
should handle them directly.  However, there is convert_data in
libelf, which seems to be an ideal place to handle compressed
debug sections.  We just need to add a hook to libelf to allow
libdw to decompress debug sections.  I propose to add

Elf *
__libelf_elf_begin (int fildes, Elf_Cmd cmd, Elf *ref,
                    char *(*convert_debug_data) (Elf_Scn *,
                                                 char *,
                                                 size_t *))

to libelf.  It will be a private function for libdw.  The full patch is at

https://bugzilla.redhat.com/attachment.cgi?id=1001009

Any comments?

I am not on this mailing list.  Please CC me on this topic.

Thanks.

-- 
H.J.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]