SEC_NEVER_LOAD cleanup

Dave Korn dave.korn.cygwin@gmail.com
Fri Oct 15 22:27:00 GMT 2010
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



More information about the Binutils mailing list