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


>>>>> "Jeffrey" == Jeffrey A Law <law@cygnus.com> writes:

    Jeffrey> I agree that we need to look at the compiler.  This is a
    Jeffrey> common issue (and a relatively common bug with the target
    Jeffrey> files).  Nothing should be going into .rodata that needs
    Jeffrey> a runtime relocation.

The problem would seem to lie in the mips.h definition of
SELECT_RTX_SECTION.  I will work on a patch.  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?

There remains the question of compatibilty with the SGI linker.  Do we
care?

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com

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