This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug gdb/14704] GDB fails to decompress relocatable files


http://sourceware.org/bugzilla/show_bug.cgi?id=14704

--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2012-10-15 18:15:37 UTC ---
We arrive in bfd_get_full_section_contents with
sec->compress_status == COMPRESS_SECTION_NONE.
This is because BFD_DECOMPRESS is not set when calling
_bfd_elf_make_section_from_shdr.

Maybe having gdb set BFD_DECOMPRESS is the right thing to do.
It is not clear to me; BFD says that this is "for BFD use only",
but then I see uses of it in ld and binutils.

If this is the correct approach we could easily set the flag
in the various wrapper functions in gdb_bfd.c.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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