PATCH for elf.sc

Jeffrey A Law law@cygnus.com
Thu Jul 1 00:00:00 GMT 1999


  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




More information about the Binutils mailing list