This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld big trouble.
Dave Korn <dave.korn.cygwin@googlemail.com> writes:
> Alan Modra wrote:
>> I suspect that on !link_info.relocatable && !config.text_read_only you
>> could loop over all output sections removing SEC_READONLY, and do
>> nothing otherwise. .text ought to be SEC_READONLY by default.
>
> All output sections? Surely we wouldn't want to e.g. remove SEC_READONLY
> from .rdata and such?
I think the "text" in text_read_only refers to the text segment in ELF
speak. In a.out there is no difference between sections and segments.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."