This is the mail archive of the binutils@sources.redhat.com 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: binutils problem


On Fri, Oct 25, 2002 at 05:05:53PM +0930, Alan Modra wrote:
> On Thu, Oct 24, 2002 at 04:09:19PM -0400, Daniel Jacobowitz wrote:
> > This patch never received any comments.  Is it still applicable - it
> > seems so?
> 
> Current m68k gas seems to assemble the testcase OK, as I'd expect
> from this code in gas/write.c:
> 	/* Never adjust a reloc against local symbol in a merge section
> 	   with non-zero addend.  */
> 	if ((symsec->flags & SEC_MERGE) != 0 && fixp->fx_offset != 0)
> 	  continue;
> 
> $ cd /src/tmp/gas/m68k-linux/
> $ gas/as-new -o zzz.o /usr/tmp/gas/pea.s 
> $ binutils/objdump -dr zzz.o
> 
> zzz.o:     file format elf32-m68k
> 
> Disassembly of section .text:
> 
> 00000000 <foobar>:
>    0:   4879 0000 0000  pea 0 <foobar>
>                         2: R_68K_32     .LC88+0xa

Thanks.  The patch _is_ needed on the 2.13.1 branch and I'll apply it
there; then this will be fixed in 2.13.1 and differently in 2.14.  One
more off the TODO list.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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