This is the mail archive of the binutils@sourceware.cygnus.com 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]

Re: ld -r breakage


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

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