bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/13046] Calling equ'd symbols


From: amodra at gmail dot com
Subject: [Bug gas/13046] Calling equ'd symbols
Date: Mon, 1 Aug 2011 00:25:02 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13046

Alan Modra <amodra at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amodra at gmail dot com

--- Comment #4 from Alan Modra <amodra at gmail dot com> 2011-08-01 00:24:22 
UTC ---
$ cat > equcall.s <<\EOF
 .text
 .set b_print_newline, 0x100040
 .global _start
_start:
 call b_print_newline
 ret
EOF
$ gas/as-new --64 -o equcall.o equcall.s 
equcall.s: Assembler messages:
equcall.s:5: Warning: indirect call without `*'
$ binutils/objdump -dr equcall.o

equcall.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <_start>:
   0:    ff 14 25 40 00 10 00     callq  *0x100040
   7:    c3                       retq   
$ gas/as-new --32 -o equcall.o /src/tmp/equcall.s 
$ binutils/objdump -dr equcall.o

equcall.o:     file format elf32-i386


Disassembly of section .text:

00000000 <_start>:
   0:    e8 3c 00 10 00           call   100041 <b_print_newline+0x1>
            1: R_386_PC32    *ABS*
   5:    c3                       ret    
$ cat > equcall.s <<\EOF
 .text
 .global _start
_start:
 call b_print_newline
 ret
 .set b_print_newline, 0x100040
EOF
$ gas/as-new --64 -o equcall.o equcall.s 
$ binutils/objdump -dr equcall.o

equcall.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <_start>:
   0:    e8 00 00 00 00           callq  5 <_start+0x5>
            1: R_X86_64_PC32    *ABS*+0x10003c
   5:    c3                       retq   

Definitely some inconsistency here.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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