Branch out of range on mips o32 building QEMU
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc |
New
|
Undecided
|
Unassigned |
Bug Description
I build lib32-qemu which is a multilib variant for mips o32 on project Yocto with qemumips64. It finally runs command and fails:
mips-wrsmllib32
-I/mnt/
-D_GNU_SOURCE -D_FILE_
-I/mnt/
-DCAPSTONE_
-c arch/AArch64/
And error messages:
{standard input}: Assembler messages:
{standard input}:38045: Error: branch out of range
{standard input}:38269: Error: branch out of range
{standard input}:38493: Error: branch out of range
{standard input}:38717: Error: branch out of range
{standard input}:38941: Error: branch out of range
{standard input}:39165: Error: branch out of range
{standard input}:39389: Error: branch out of range
{standard input}:39613: Error: branch out of range
{standard input}:39728: Error: branch out of range
{standard input}:39990: Error: branch out of range
{standard input}:40252: Error: branch out of range
{standard input}:40514: Error: branch out of range
{standard input}:40776: Error: branch out of range
{standard input}:41038: Error: branch out of range
The gcc version is 9.1. I have verified that gcc 8.3 works. And there is no error when remove option '-Og' with gcc 9.1.
I am not sure whether it is a defect of gcc 9.1 or capstone. Should it be fixed in capstone? Thanks.
There is no custom assembly within capstone.
This is purely a compiler bug.