This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/14704] GDB fails to decompress relocatable files
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 15 Oct 2012 20:45:31 +0000
- Subject: [Bug gdb/14704] GDB fails to decompress relocatable files
- Auto-submitted: auto-generated
- References: <bug-14704-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=14704
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-10-15 20:45:31 UTC ---
(In reply to comment #3)
> 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.
Yes, it is the right thing to do.
--
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.