bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loopx instruction error


From: Alan Larson
Subject: loopx instruction error
Date: Tue, 9 Jul 2024 19:33:51 -0700

Attempting to use the "loopq" or "loopl" instruction in gnu assembly
fails, dec %rcx and jnz works.

llarson% ../binutils-2.41x/gas/as-new -o xxxxxxx -a
    mov    $42,%rcx
foo:    nop
    loopq    foo
{standard input}: Assembler messages:
{standard input}:3: Error: cannot represent relocation type BFD_RELOC_8_PCREL
GAS LISTING              page 1


   1 ???? 48C7C12A      mov $42,%rcx
   1      000000
   2 ???? 90           foo:nop
   3 ???? E200          loopq foo
****  Error: cannot represent relocation type BFD_RELOC_8_PCREL

GAS LISTING              page 2


DEFINED SYMBOLS
    {standard input}:2      .text:0000000000000007 foo

NO UNDEFINED SYMBOLS
[Alans-iMac:~/x86] larson% ../binutils-2.41x/gas/as-new -o xxxxxxx -a
 mov $42,%rcx
foo: nop
 dec %rcx
 jne foo
GAS LISTING              page 1


   1 0000 48C7C12A      mov $42,%rcx
   1      000000
   2 0007 90           foo:nop
   3 0008 48FFC9        dec %rcx
   4 000b 75FA          jne foo

GAS LISTING              page 2


DEFINED SYMBOLS
    {standard input}:2      .text:0000000000000007 foo

NO UNDEFINED SYMBOLS



larson% ../binutils-2.41x/gas/as-new --version
GNU assembler (GNU Binutils) 2.41
Copyright (C) 2023 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 `'.



Running on MacOS 11.7.10, intel arch.


Interestingly on a larger program, it didn't give the error message,
but still errored and showed ???? for the addreses.

        Alan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]