[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
a bug report of gas (binutils-2.11)
From: |
Hideo Saito |
Subject: |
a bug report of gas (binutils-2.11) |
Date: |
Fri, 11 May 2001 14:52:47 +0900 |
To : address@hidden
From: address@hidden (Hideo Saito)
Title: a bug report of gas (binutils-2.11)
Hello. My name is H.Saito from Japan.
I report a bug of gas (binutils-2.11), when specified '-mips3' option.
xxx.s is a assembler test program.
This assembler program is a part of C program.
fff(){}
int (*ppp)();
main()
{
ppp = fff;
(*ppp)();
}
---start xxx.s:---------------------
.abicalls
lw $16,ppp
move $25,$16
jal $31,$25
.comm ppp,4
---end xxx.s:---------------------
Gas-2.11 generates illegal code.
0: df900000 ld $s0,0($gp)
But I hope to generate this code.
0: 8f900000 lw $s0,0($gp)
Thank you. Good bye.
-test log----------------------------------
% ./as-new -o xxx.o xxx.s -mips3
xxx.s: Assembler messages:
xxx.s:5: Warning: No .cprestore pseudo-op used in PIC code
% objdump -D xxx.o
xxx.o: file format elf32-bigmips
Disassembly of section .text:
0000000000000000 <.text>:
0: df900000 ld $s0,0($gp)
4: 00000000 nop
8: 8e100000 lw $s0,0($s0)
c: 0200c82d move $t9,$s0
10: 0320f809 jalr $t9
...
Disassembly of section .data:
Disassembly of section .reginfo:
0000000000000000 <.reginfo>:
0: 92010000 lbu $at,0($s0)
...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- a bug report of gas (binutils-2.11),
Hideo Saito <=