From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26280 invoked by alias); 10 Jul 2005 16:29:24 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26266 invoked by uid 22791); 10 Jul 2005 16:29:19 -0000 Received: from yosemite.airs.com (HELO yosemite.airs.com) (205.217.158.180) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Sun, 10 Jul 2005 16:29:19 +0000 Received: (qmail 12468 invoked by uid 10); 10 Jul 2005 16:29:17 -0000 Received: (qmail 20413 invoked by uid 500); 10 Jul 2005 16:29:09 -0000 Mail-Followup-To: gcc-help@gcc.gnu.org, florian__michel@web.de To: Florian Michel Cc: gcc-help@gcc.gnu.org Subject: Re: AMD 64 Problem with assembling References: <285526835@web.de> From: Ian Lance Taylor Date: Sun, 10 Jul 2005 16:29:00 -0000 In-Reply-To: <285526835@web.de> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-07/txt/msg00106.txt.bz2 Florian Michel 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