This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH for i386: --no-copy-relocs
- To: "Jose Luu" <jluu at mainsoft dot com>
- Subject: Re: PATCH for i386: --no-copy-relocs
- From: Ian Lance Taylor <ian at zembu dot com>
- Date: 20 Jun 2001 00:18:00 -0700
- Cc: "H . J . Lu" <hjl at lucon dot org>, <binutils at sources dot redhat dot com>
- References: <027601c0f8db$e552d0b0$2a0da8c0@fred.fr.mainsoft.com>
"Jose Luu" <jluu@mainsoft.com> writes:
> >Is that for symbols in the .rodata (.text?) section? Can we tell gcc
> >to put such symbols in the .data section? The SVR4 mips ABI has the
> >similar issue.
> >
> >
> Ian and H.J.
>
> I did not see the need for symbols in the .text or .rodata sections so I
> restricted the patch to the relocs in sections where (sec->flags &
> SEC_ALLOC) !=0, this eliminates the .rodata and .text, this is similar to
> what is done in the case where a shared library is produced.
I don't understand what you are saying here. SEC_ALLOC is certainly
set for the .text section.
Ian