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


On 14 Jun 2000, Ian Lance Taylor wrote:

>    Any recollection about this comment Ian?
>    /* Text section is write protected (if D_PAGED is not set, this is
>       like an a.out NMAGIC file) (the linker sets this by default, but
>       clears it for -r or -N).  */
>    #define WP_TEXT     	0x80
> 
> This is an a.out thing, really.  In a.out, section flags are implied
> by the magic number.

And vice versa.  Since OMAGIC should be used for object files, we
ought to continue to clear config.text_read_only for "ld -r".

config.text_read_only clear
  => WP_TEXT cleared in ldlang.c:ldlang_open_output
  => o_magic selected in aoutx.h:adjust_sizes_and_vmas

I've checked in the fix I posted earlier.

Regards, Alan Modra
-- 
Linuxcare.  Support for the Revolution.


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