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

Re: [patch pe-coff]: Fix output of debug sections in image


On 09/20/2010 12:33 PM, Kai Tietz wrote:
> Hello,
> 
> this patch fixes the output of debugging sections in PE-image.
> 
> ChangeLog bfd
> 
> 	* coffcode.h (sec_to_styp_flags): Adjust debug
> 	sections to be conform to pe-coff specification
> 	and avoid marking them as excluded.
> 	(styp_to_sec_flags): Doing reverse mapping.
> 
> ChangeLog ld
> 
> 	* ldlang.c (lang_add_section): Allow for debugging
> 	section to be marked as noload but to keep content.
> 	(IGNORE_SECTION): Likewise.
> 	(lang_check_section_addresses): Likewise.
> 	* ldwrite.c (build_link_order): Likewise.
> 
> Tested for x86_64-w64-mingw32, i686-w64-mingw32, and i686-pc-cygwin.
> Ok for apply?

I do wonder if the SEC_NEVER_LOAD bits can simply be
removed, similar to what Alan did recently for ELF.
Otherwise it looks like improvement.

I'd like someone else to look at this too, though.


r~


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