AMD 64 Problem with assembling

Ian Lance Taylor ian@airs.com
Sun Jul 10 16:29:00 GMT 2005


Florian Michel <florian__michel@web.de> writes:

> I have a question concerning successfully assembling and linking the
> following assembly program on a linux AMD 64 machine:

The gcc-help mailing list is for questions about using gcc.  It is not
for general questions about how to write correct programs, or correct
assembly code.  Thanks.

That said, the easiest way to write correct assembly code is to copy
at gcc output, as generated by -S or --save-temps.

And the bug here is in this line:

> .section .datatext

You want something like:

.section .datatext,"a"

Ian



More information about the Gcc-help mailing list