This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Psossible problem with gas on MIPS
- To: binutils at sourceware dot cygnus dot com
- Subject: Psossible problem with gas on MIPS
- From: "Koundinya.K" <kk at ddeorg dot soft dot net>
- Date: Thu, 08 Jun 2000 12:47:13 +0530
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