This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: PATCH : sh-elf-as fix for SEC_MERGE
- From: "Nitin Gupta, Noida" <niting at noida dot hcltech dot com>
- To: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 12 Dec 2002 14:54:57 +0530
- Subject: RE: PATCH : sh-elf-as fix for SEC_MERGE
> -----Original Message-----
> From: kaz Kojima [mailto:kkojima@rr.iij4u.or.jp]
> Sent: Wednesday, December 11, 2002 10:00 AM
> To: Nitin Gupta, Noida
> Cc: binutils@sources.redhat.com
> Subject: Re: PATCH : sh-elf-as fix for SEC_MERGE
>
>
> "Nitin Gupta, Noida" <niting@noida.hcltech.com> wrote:
> > Following testcase produces incorrect results when
> > compiled with -O2 (sh-elf-gcc). I'm using
> > -GCC 3.1.1 (reproducible with GCC mainline too)
> > -binutils 2.12
> > -newlib 1.10.0
> [snip]
> > The assembler should not relax the expression of .L3. Keeping
> > relocation entry and symtab same it should emit 1 at
> offset 0x20
> > in text section (the offset corresponding to .L3).
>
> This seems not SH specific and is fixed already in binutils-2.13.x
> and CVS. Please take a look at recent gas/write.c:adjust_reloc_syms.
>
Thanks a lot for help.
It is fixed in adjust_reloc_syms itself in later
version. I think I need to upgarade to latest binutils.
Best Regards,
Nitin