This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: ld -r breakage
- To: alan at linuxcare dot com dot au
- Subject: Re: ld -r breakage
- From: Nick Clifton <nickc at cygnus dot com>
- Date: Mon, 12 Jun 2000 15:30:08 -0700
- CC: jakub at redhat dot com, binutils at sourceware dot cygnus dot com
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