flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Linux > How to execute fasm programs?

Author
Thread Post new topic Reply to topic
kerr



Joined: 24 Feb 2016
Posts: 93
How to execute fasm programs?
Today I use fasm compile program, all fasm compile program file cannot execute!
ubuntu system execution fasm program appear cannot execute binary file!

_________________
hello world!
Post 01 Mar 2016, 08:56
View user's profile Send private message MSN Messenger Reply with quote
alkap



Joined: 18 Feb 2015
Posts: 34
Location: Dnipro, Ukraine
How do you run the executable?
What's the output of the command lines below?

Code:

file your_executable
ls -l your_executable


Post 01 Mar 2016, 10:41
View user's profile Send private message Send e-mail Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 93

alkap wrote:
How do you run the executable?
What's the output of the command lines below?

Code:

file your_executable
ls -l your_executable





is command execute fasm compile program .show cannot execute binary file!
and all fasm compile program don't execute.

_________________
hello world!
Post 02 Mar 2016, 00:55
View user's profile Send private message MSN Messenger Reply with quote
Trinitek



Joined: 06 Nov 2011
Posts: 249

Code:
chmod +x yourBinaryFile

Perhaps?
Post 02 Mar 2016, 03:31
View user's profile Send private message Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 93

Trinitek wrote:

Code:
chmod +x yourBinaryFile

Perhaps?




Oh! NO.....
is cannot compile program i tried.

_________________
hello world!
Post 02 Mar 2016, 05:27
View user's profile Send private message MSN Messenger Reply with quote
alkap



Joined: 18 Feb 2015
Posts: 34
Location: Dnipro, Ukraine
How do you compile the program then?
Post 02 Mar 2016, 05:31
View user's profile Send private message Send e-mail Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 93

alkap wrote:
How do you compile the program then?




fasm test.asm
flat assembler version 1.71.39 (16384 kilobytes memory)
3 passes, 159 bytes.


-bash: ./test: can not execute binary file: executable file format error

_________________
hello world!
Post 02 Mar 2016, 08:37
View user's profile Send private message MSN Messenger Reply with quote
system error



Joined: 01 Sep 2013
Posts: 438

Code:
./fasm test.asm

Post 02 Mar 2016, 09:15
View user's profile Send private message Reply with quote
alkap



Joined: 18 Feb 2015
Posts: 34
Location: Dnipro, Ukraine

Quote:

fasm test.asm
flat assembler version 1.71.39 (16384 kilobytes memory)
3 passes, 159 bytes.


-bash: ./test: can not execute binary file: executable file format error



Bash is telling you there that you're attempting to run an executable which is not in ELF format.
The problem is in your 'test.asm' format directive. You may verify this by running:

Code:

file test



Make sure your 'format' directive says 'format ELF'.
Post 02 Mar 2016, 12:33
View user's profile Send private message Send e-mail Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 93

system error wrote:

Code:
./fasm test.asm




Oh ,you speak is not right! there is should system error!

_________________
hello world!
Post 03 Mar 2016, 02:03
View user's profile Send private message MSN Messenger Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 93

alkap wrote:

Quote:

fasm test.asm
flat assembler version 1.71.39 (16384 kilobytes memory)
3 passes, 159 bytes.


-bash: ./test: can not execute binary file: executable file format error



Bash is telling you there that you're attempting to run an executable which is not in ELF format.
The problem is in your 'test.asm' format directive. You may verify this by running:

Code:

file test



Make sure your 'format' directive says 'format ELF'.





Code is Right ,is Fasm Compile Program Not in command run.
Programs written before Now not run.Show can not execute binary file: executable file format error.

Quote:

file test
test: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, interpreter \272\014, stripped



Quote:

warning: cannot find entry symbol _start; not setting start address


_________________
hello world!
Post 03 Mar 2016, 02:22
View user's profile Send private message MSN Messenger Reply with quote
alkap



Joined: 18 Feb 2015
Posts: 34
Location: Dnipro, Ukraine
Is your Linux system 32, or 64 bit?

Code:

uname -m


Post 03 Mar 2016, 06:16
View user's profile Send private message Send e-mail Reply with quote
kerr



Joined: 24 Feb 2016
Posts: 93

alkap wrote:
Is your Linux system 32, or 64 bit?

Code:

uname -m





is 32bit

_________________
hello world!
Post 03 Mar 2016, 08:44
View user's profile Send private message MSN Messenger Reply with quote
alkap



Joined: 18 Feb 2015
Posts: 34
Location: Dnipro, Ukraine
If your 'test.asm' is not too big, perhaps you could post it here, so we could better help you with the trouble you're experiencing.
Post 03 Mar 2016, 09:07
View user's profile Send private message Send e-mail 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.