This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Calling equ'd symbols in GAS


On Thu, Jul 28, 2011 at 10:49:14PM -0500, Eduardo Cavazos wrote:
> 
> > On Thu, Jul 28, 2011 at 07:58:08PM -0500, Eduardo Cavazos wrote:
> 
> > > Any suggestions for how to implement the GAS version properly?
> 
> On Fri, 2011-07-29 at 12:41 +0930, Alan Modra wrote:
> 
> > Already fixed.
> 
> I tried with as from binutils version 2.21.1; it didn't seem to fix the
> problem.

Well, here's my 2.21.1 results

$ cat > equcall.s <<\EOF
            .set b_print_newline , 0x0000000000100040

            .text

            .global _start

    _start:

            call b_print_newline

            ret
EOF
$ gas/as-new -o equcall.o equcall.s 
$ ld/ld-new -o equcall equcall.o 
$ objdump -d equcall

equcall:     file format elf32-i386


Disassembly of section .text:

08048054 <_start>:
 8048054:	e8 e7 7f 0b f8       	call   100040 <b_print_newline>
 8048059:	c3                   	ret    
$ 


-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]