This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[patch committed] SH: Fix PR gas/6043
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: binutils at sourceware dot org
- Date: Mon, 07 Apr 2008 11:58:23 +0900 (JST)
- Subject: [patch committed] SH: Fix PR gas/6043
Hi,
The attached sh64 specific patch is to fix PR gas/6043. Tested
with "make -k check" on sh64-elf and sh64-unknown-linux-gnu with
no new failures. Applied.
Regards,
kaz
--
[gas/ChangeLog]
2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
PR gas/6043
* config/tc-sh64.c (shmedia_md_pcrel_from_section): Use
md_pcrel_from_section for BFD_RELOC_64 and BFD_RELOC_64_PCREL.
[gas/testsuite/ChangeLog]
2008-04-07 Kaz Kojima <kkojima@rr.iij4u.or.jp>
PR gas/6043
* gas/sh/sh64/eh-1.d: New.
* gas/sh/sh64/eh-1.d: Likewise.
diff -uprN ORIG/src/gas/config/tc-sh64.c LOCAL/src/gas/config/tc-sh64.c
--- ORIG/src/gas/config/tc-sh64.c 2007-07-31 09:12:54.000000000 +0900
+++ LOCAL/src/gas/config/tc-sh64.c 2008-04-07 07:30:33.000000000 +0900
@@ -3064,8 +3064,7 @@ shmedia_md_pcrel_from_section (struct fi
case BFD_RELOC_64:
case BFD_RELOC_64_PCREL:
- know (0 /* Shouldn't get here. */);
- break;
+ /* Fall through. */
default:
/* If section was SHcompact, use its function. */
diff -uprN ORIG/src/gas/testsuite/gas/sh/sh64/eh-1.d LOCAL/src/gas/testsuite/gas/sh/sh64/eh-1.d
--- ORIG/src/gas/testsuite/gas/sh/sh64/eh-1.d 1970-01-01 09:00:00.000000000 +0900
+++ LOCAL/src/gas/testsuite/gas/sh/sh64/eh-1.d 2008-04-07 08:09:54.000000000 +0900
@@ -0,0 +1,14 @@
+#as: --abi=32 --isa=shmedia
+#objdump: -sr
+#source: eh-1.s
+#name: PR gas/6043
+
+.*: file format .*-sh64.*
+
+RELOCATION RECORDS FOR \[\.eh_frame\]:
+OFFSET *TYPE *VALUE
+00000000 R_SH_64_PCREL \.text\+0x00000005
+
+
+Contents of section .eh_frame:
+ 0000 00000000 00000000 .*
diff -uprN ORIG/src/gas/testsuite/gas/sh/sh64/eh-1.s LOCAL/src/gas/testsuite/gas/sh/sh64/eh-1.s
--- ORIG/src/gas/testsuite/gas/sh/sh64/eh-1.s 1970-01-01 09:00:00.000000000 +0900
+++ LOCAL/src/gas/testsuite/gas/sh/sh64/eh-1.s 2008-04-07 07:54:13.000000000 +0900
@@ -0,0 +1,7 @@
+! PR gas/6043
+
+ .text
+.LFB1:
+ .section .eh_frame,"a",@progbits
+.LASFDE1:
+ .uaquad .LFB1-.