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: hjl.tools at gmail dot com
Subject: [Bug gas/13046] Calling equ'd symbols
Date: Sun, 31 Jul 2011 19:47:38 +0000

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-07-31 19:47:19 
UTC ---
(In reply to comment #0)
> 
> Here's a GAS version:
> 
>             .set b_print_newline , 0x0000000000100040
> 
>             .text
> 
>             .global _start
> 
>     _start:
> 
>             call b_print_newline
> 
>             ret
> 
> Assemble and link it:
> 
>     $ as -o pr-nl-b.o pr-nl-b.s
>     $ ld -Ttext 200000 --oformat binary -o pr-nl-b.app pr-nl-b.o
> 
> Disassemble it:
> 
>     $ objdump -D -b binary -m i386:x86-64 pr-nl-b.app 
>     pr-nl-b.app:     file format binary
> 
> 
>     Disassembly of section .data:
> 
>     0000000000000000 <.data>:
>        0:       ff 14 25 40 00 10 00    callq  *0x100040
>        7:       c3                      retq
> 

You have "call b_print_newline" where b_print_newline is 0x100040
and you get "callq *0x100040".  What is wrong with that?  Please
tell me why you think binutis is wrong.  Please don't mention NASM
here since I can say NASM is wrong.

-- 
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]