This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Possible problem with gas on MIPS
- To: "Koundinya.K" <kk at ddeorg dot soft dot net>
- Subject: Re: Possible problem with gas on MIPS
- From: Ulf Carlsson <ulfc at calypso dot engr dot sgi dot com>
- Date: Thu, 8 Jun 2000 01:57:49 -0700 (PDT)
- Cc: binutils at sourceware dot cygnus dot com
> RELOCATION RECORDS FOR [.text]:
> OFFSET TYPE VALUE
> 00000004 R_MIPS_PC16 noerror
How is this supposed to work? R_MIPS_PC16 doesn't shift out the lower two
bits of the offset, so the branch instructions can not possibly use this
relocation type. However can do this with the R_MIPS_GNU_REL16_S2 relocation
which is a Cygnus extension.
> li.s: Assembler messages:
> li.s:3: Error: Can not represent BFD_RELOC_16_PCREL_S2 relocation in this
> object file format
I tried it and it goes through the assembler if you use -membedded-pic. I
have not tested it any further though.
Ulf