ld -r breakage

Nick Clifton nickc@cygnus.com
Mon Jun 12 16:30:00 GMT 2000


Hi Alan,

: > Although this solution will probably work, it does not strike me as
: > being the right thing to do.
: 
: I think it is.  Why should "ld -r" change section attributes?

Hmm, I agree that it shouldn't.  But 'ld -r -N' should.  (I am not
sure why anyone would ever want to combine these switches but you
never know).   So what I am suggesting is that the SEC_READONLY
attribite of the text section should only be controlled by the
config.text_read_only flag, and that by default doing 'ld -r' should
not change this flag.

Cheers
	Nick


More information about the Binutils mailing list