This is the mail archive of the binutils@sources.redhat.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: More problems with MIPS gas relocations


On Wed, Jul 25, 2001 at 08:45:45AM -0700, cgd@broadcom.com wrote:
> 
> 001-06-08  H.J. Lu  <hjl@gnu.org>
> 
>         * config/tc-mips.c (md_apply_fix): Don't adjust common
>         extern/weak symbols for ELF.
>         (md_estimate_size_before_relax): Treat weak like extern for
>         ELF.
>         (mips_fix_adjustable): Don't adjust extern/weak symbols for
>         ELF.
> 
> fails to work.  namely, PC-relative branches generated with
> -membedded-pic (on mips-elf, mips64-elf, etc.).  For reference & later
> discussion, i've included the entire contents of that patch at the
> bottom of this message.

Those patches are needed for the SVR4 MIPS ABI. Without it, you won't
be able to override a global definition in a DSO. If there is no DSO
involved, those patches may not be needed. But other other hand, the
linker should be able to do the right thing during the final link. I
don't use -membedded-pic and I have no idea what it does.

BTW, gc doesn't work on mips. I will look into it when I find the time.


H.J.


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