Psossible problem with gas on MIPS
Koundinya.K
kk@ddeorg.soft.net
Thu Jun 8 00:11:00 GMT 2000
Hi,
Here is a a small test case that I could derive out of the large piece of
assembler code that assembling
$ cat li.s
..set noreorder
li $2,7
beqz $7, noerror
nop
assembling the above with the native assembler
$ /usr/bin/as -EB -KPIC li.s -o li.o
$ objdump -r li.o
li.o: file format elf32-tradbigmips
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000004 R_MIPS_PC16 noerror
Assembling the same using gas
$as -KPIC li.s -o li_gas.o
li.s: Assembler messages:
li.s:3: Error: Can not represent BFD_RELOC_16_PCREL_S2 relocation in this
object file format
Could this be a possible bug in gas ?. I am looking at the source too. Could
someone having access to MIPS boxes try this test case and verify ?
Thanks
koundinya
More information about the Binutils
mailing list