This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: AMD 64 Problem with assembling
- From: Ian Lance Taylor <ian at airs dot com>
- To: Florian Michel <florian__michel at web dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 10 Jul 2005 09:29:09 -0700
- Subject: Re: AMD 64 Problem with assembling
- References: <285526835@web.de>
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