yasm compile error

Peter Johnson peter at tortall.net
Wed Sep 10 21:43:36 PDT 2008


Sorry it took me so long to get back to you!  Moderation on a mailing list 
is a two-edged sword, and I'm used to getting so much spam that I don't 
pay as much attention as I should to moderation requests.

On Mon, 7 Jul 2008, quandary82 at hailmail.net wrote:

> 2 errors:

| yasm --version
| yasm 0.5.0.1591
| Compiled on Mar 28 2007.

Please try a newer version, like 0.7.1.  Most of the problems below are 
fixed in newer versions.

> .section .data
>  mystring: .ascii "Hello World!\n"
> .section .text

Already fixed in 0.7.1.

> ...and it assembled... But 'readelf' shows me that it didn't set the
> section flags correctly... so it won't execute...

The section flags look correct in recent snapshot (soon to be 0.7.2; I've 
not yet checked 0.7.1 but it's worth a try).

> **********************************************
> Another error with this program:
>
> root at all:~/Desktop# ld
> --dynamic-linker /lib/ld-linux.so.2 /lib/libc.so.6 bla.o -o bla
> root at all:~/Desktop# ./bla
> Hello World!

Also works.

> *********************************************************
> 
> Another thing is this one:
> GAS assembly produced by the GNU c compiler:

Haven't tried it, but I suspect it will work.

Again, please try with 0.7.1 or a recent snapshot and let me know if you 
run into any problems.

Peter



More information about the yasm-devel mailing list