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: PATCH for elf.sc



  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



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