public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Somchai Smythe <buraphalinuxserver@gmail.com>
To: binutils@sourceware.org
Subject: 'dollar local labels' in GAS do not appear to be implemented
Date: Mon, 04 May 2015 08:09:00 -0000	[thread overview]
Message-ID: <CAFJqGkOLdSEoZmGV+kHRESK6Xs_pgaaWOxK9uPdq_nJxM=wyHA@mail.gmail.com> (raw)

Hello,

I cannot get 'dolloar local labels' that are described in the GNU
assembly manual to work.  Here is what I tried to assemble:

        .file 1 "trouble.s"
        .att_syntax
        .att_mnemonic
        .arch core2,nojumps
        .code64

        .section .text,"ax",@progbits
        .globl  _start
        .type   main, @function
        .align 16, 0x90
_start:
        jmp     55$f
55$:
        movabsq $0, %rdi # return code indicates success
        movabsq $__NR_exit, %rax
        syscall
        .section .note.GNU-stack,"",@progbits

Here is what it says:

as trouble.s -o trouble.o
trouble.s: Assembler messages:
trouble.s:12: Error: junk `$f' after expression
trouble.s:13: Error: junk at end of line, first unrecognized character is `5'

as --version
GNU assembler (GNU Binutils for Ubuntu) 2.25
Copyright (C) 2014 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-linux-gnu'.

             reply	other threads:[~2015-05-04  8:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04  8:09 Somchai Smythe [this message]
2015-05-04  9:48 ` Andreas Schwab
2015-05-05  2:46   ` Mike Frysinger
2015-05-06 12:12     ` Nicholas Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFJqGkOLdSEoZmGV+kHRESK6Xs_pgaaWOxK9uPdq_nJxM=wyHA@mail.gmail.com' \
    --to=buraphalinuxserver@gmail.com \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).