This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: PATCH for elf.sc
- To: mark@codesourcery.com
- Subject: Re: PATCH for elf.sc
- From: Jeffrey A Law <law@cygnus.com>
- Date: Mon, 21 Jun 1999 03:16:11 -0600
- cc: ian@zembu.com, binutils@sourceware.cygnus.com
- Reply-To: law@cygnus.com
In message <19990620221247Y.mitchell@codesourcery.com>you write:
> The problem would seem to lie in the mips.h definition of
> SELECT_RTX_SECTION.
That is the usual culprit along with SELECT_SECTION.
> I will work on a patch.
It shouldn't be too hard. You can look at the definitions in pa.h for
template code. Basically they'll kick anything that could possibly require
a runtime relocation into .data and try to leave everything else in .rodata.
> I guess that any address
> constant should go in the .data section, rather than in .rodata, since
> any object might being part of a shared object, in which case the
> address constant will be relocated?
Precisely. It also helps when the linker warns/errors for this situation
which makes it easier to track down goofs in the implementation of
SELECT_SECTION and SELECT_RTX_SECTION.
> There remains the question of compatibilty with the SGI linker. Do we
> care?
I'll leave that to Ian. :-)
Jeff