PATCH : sh-elf-as fix for SEC_MERGE
kaz Kojima
kkojima@rr.iij4u.or.jp
Wed Dec 11 06:38:00 GMT 2002
"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.
Regards,
kaz
More information about the Binutils
mailing list