This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: SEC_NEVER_LOAD cleanup
On 15/10/2010 21:36, Kai Tietz wrote:
> Well, you can add this section to the comparison for debugging section
> in bfd's coffcode.h (like done there for the others - .debug*,
> comment, etc). Should work then.
You mean like the attached? Didn't work. It's specifically this hunk here
that's losing the flag and causing the later failure:
> @@ -3491,7 +3493,7 @@ map_input_to_output_sections
> flags = SEC_HAS_CONTENTS;
> break;
> case noload_section:
> - flags = SEC_HAS_CONTENTS | SEC_NEVER_LOAD;
> + flags = SEC_NEVER_LOAD;
> break;
> }
> if (os->bfd_section == NULL)
from ldlang.c
cheers,
DaveK