flat assembler
Message board for the users of flat assembler.

flat assembler > Unix > fasm-1.67.29.tar.gz on freebsd 7.1, examples don't work

Author
Thread Post new topic Reply to topic
sleepsleep



Joined: 05 Oct 2006
Posts: 7614
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
hi there,
was putting fasm-1.67.29.tar.gz on my freebsd 7.1

so, i just try to assemble the elfobj examples... but it doesn't seem to work even thought i assembled without problem.

Code:
# ld msgdemo.o writemsg.o -o msgdemo
# file msgdemo
msgdemo: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, not stripped
# ./msgdemo
# 
    


so... shouldn't i expect it prints out something??
Post 05 Feb 2009, 20:39
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4634
Location: Argentina
Yes, it is OK because the demo is for Linux only Confused

Looks like Tomasz replaced the Unix package with all the content of the Linux package but the fasm Linux executable version.

[edit]If you have Linux emulation enabled you could try branding the executable to Linux with the brandelf utility).
Post 05 Feb 2009, 22:14
View user's profile Send private message Reply with quote
sleepsleep



Joined: 05 Oct 2006
Posts: 7614
Location: ˛                              ⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣⁣ Posts: 6699
ic,
i tried the following and working now
Code:
brandelf -t Linux msgdemo
file msgdemo
msgdemo: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statitcally linked, not stripped
    


freebsd handbook wrote:

To help the FreeBSD kernel distinguish between a FreeBSD ELF binary from a Linux binary, use the brandelf(1) utility.
% brandelf -t Linux my-linux-elf-binary

The GNU toolchain now places the appropriate branding information into ELF binaries automatically, so this step should become increasingly unnecessary in the future.


problem solved. Wink
Post 06 Feb 2009, 06:13
View user's profile Send private message 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-2018, Tomasz Grysztar.

Powered by rwasa.