This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Commit: Patch: GAS: Fix DWARF line number generation for target that use linker relaxation
On Fri, Jun 29, 2012 at 02:50:33PM +0930, Alan Modra wrote:
> crx-elf +FAIL: lns-common-1
> mn10200-elf +FAIL: lns-duplicate
> mn10200-elf +FAIL: lns-common-1
> mn10200-elf +FAIL: lns-big-delta
Applied.
binutils/
* readelf.c (is_16bit_abs_reloc): Handle mn10200 reloc.
gas/testsuite/
* gas/lns/lns.exp (lns-common-1): Add crx to alt target list.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.575
diff -u -p -r1.575 readelf.c
--- binutils/readelf.c 30 May 2012 14:33:11 -0000 1.575
+++ binutils/readelf.c 29 Jun 2012 05:31:07 -0000
@@ -10093,6 +10093,9 @@ is_16bit_abs_reloc (unsigned int reloc_t
case EM_XC16X:
case EM_C166:
return reloc_type == 2; /* R_XC16C_ABS_16. */
+ case EM_CYGNUS_MN10200:
+ case EM_MN10200:
+ return reloc_type == 2; /* R_MN10200_16. */
case EM_CYGNUS_MN10300:
case EM_MN10300:
return reloc_type == 2; /* R_MN10300_16. */
Index: gas/testsuite/gas/lns/lns.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/lns/lns.exp,v
retrieving revision 1.14
diff -u -p -r1.14 lns.exp
--- gas/testsuite/gas/lns/lns.exp 28 Jun 2012 11:31:14 -0000 1.14
+++ gas/testsuite/gas/lns/lns.exp 29 Jun 2012 05:31:21 -0000
@@ -20,6 +20,7 @@ if {
if { [istarget xtensa*-*-*]
|| [istarget am3*-*-*]
|| [istarget cr16-*-*]
+ || [istarget crx-*-*]
|| [istarget mn10*-*-*] } {
run_dump_test "lns-common-1-alt"
run_dump_test "lns-big-delta"
--
Alan Modra
Australia Development Lab, IBM