aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorKaz Kojima <kkojima@rr.iij4u.or.jp>2008-04-07 02:55:08 +0000
committerKaz Kojima <kkojima@rr.iij4u.or.jp>2008-04-07 02:55:08 +0000
commit783d3e7187893c2cbb2f0697b5ba2468c6624c17 (patch)
tree58a76585cf5a0d69ff9cad80259337834af0205c /gas
parent3bd77c39065a76c0b9d062e6c657b4528cf55fb6 (diff)
downloadgdb-783d3e7187893c2cbb2f0697b5ba2468c6624c17.zip
gdb-783d3e7187893c2cbb2f0697b5ba2468c6624c17.tar.gz
gdb-783d3e7187893c2cbb2f0697b5ba2468c6624c17.tar.bz2
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/sh/sh64/eh-1.d: New. * gas/sh/sh64/eh-1.d: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog6
-rw-r--r--gas/config/tc-sh64.c3
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/sh/sh64/eh-1.d14
-rw-r--r--gas/testsuite/gas/sh/sh64/eh-1.s7
5 files changed, 34 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index d0ebb23..c308c82 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2008-04-04 Adrian Bunk <bunk@stusta.de>
Bob Wilson <bob.wilson@acm.org>
diff --git a/gas/config/tc-sh64.c b/gas/config/tc-sh64.c
index 2836ecc..8317098 100644
--- a/gas/config/tc-sh64.c
+++ b/gas/config/tc-sh64.c
@@ -3064,8 +3064,7 @@ shmedia_md_pcrel_from_section (struct fix *fixP, segT sec ATTRIBUTE_UNUSED)
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 --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index dcb467e..65c19a3 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
* gas/i386/arch-10-1.l: Replace CLMUL with PCLMUL.
diff --git a/gas/testsuite/gas/sh/sh64/eh-1.d b/gas/testsuite/gas/sh/sh64/eh-1.d
new file mode 100644
index 0000000..da267e3
--- /dev/null
+++ b/gas/testsuite/gas/sh/sh64/eh-1.d
@@ -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 --git a/gas/testsuite/gas/sh/sh64/eh-1.s b/gas/testsuite/gas/sh/sh64/eh-1.s
new file mode 100644
index 0000000..c1cc672
--- /dev/null
+++ b/gas/testsuite/gas/sh/sh64/eh-1.s
@@ -0,0 +1,7 @@
+! PR gas/6043
+
+ .text
+.LFB1:
+ .section .eh_frame,"a",@progbits
+.LASFDE1:
+ .uaquad .LFB1-.