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: 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.

Regards,
	kaz


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