This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AMD 64 Problem with assembling


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]