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


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