flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > BUG: Fasm generating error on ELF64 Object file output.

Author
Thread Post new topic Reply to topic
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
Chewy509
Hi Thomasz,

FASM 1.63.1 on Linux is exiting with an error when generating ELF64 Objects, with the following source file.

It's stopping on line with : add r6, 08h

The issue is, that it's stopping at the 6th last occurance of the above instruction, within the source. If I comment out the line that it stops on, it then assembles the entire source file, without any issues.

Darran.

PS. r6 == rbp, and the source is the output from my B0 compiler.
PPS. I'm running fasm on CRUX v2.1 (AMD64). (Linux kernel 2.6.11)


Description:
Download
Filename: le2.asm
Filesize: 24.44 KB
Downloaded: 312 Time(s)

Post 27 Jul 2005, 22:25
View user's profile Send private message Visit poster's website Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
I tested it on FASM 1.60 for Windows and the "add r6, 08h" at line 1496 works but after that line any occurrence of that instruction generates this error: "Error: not encodable with long immediate."
Post 27 Jul 2005, 23:00
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
BTW changing "add r6, 08h" to "add rbp, 08h" has the same problem
Post 27 Jul 2005, 23:10
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 7410
Location: Kraków, Poland
Tomasz Grysztar
Fixed in 1.63.2.
Post 28 Jul 2005, 15:05
View user's profile Send private message Visit poster's website Reply with quote
Chewy509



Joined: 19 Jun 2003
Posts: 297
Location: Bris-vegas, Australia
Chewy509
Thanks
Post 29 Jul 2005, 02:33
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2019, Tomasz Grysztar.

Powered by rwasa.