Fix SPARC relocations generated for the .eh_frame section.
authorNick Clifton <nickc@redhat.com>
Tue, 15 Nov 2016 15:41:27 +0000 (15:41 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 15 Nov 2016 15:41:27 +0000 (15:41 +0000)
PR gas/20803
* config/tc-sparc.c (cons_fix_new_sparc): Use unaligned relocs in
the .eh_frame section.

gas/ChangeLog
gas/config/tc-sparc.c

index f5836ac2c37234268351a85feb72bebbf3178fd5..613833b485a8355c308d7e1d95f44182d08b8aae 100644 (file)
@@ -1,3 +1,9 @@
+2016-11-15  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/20803
+       * config/tc-sparc.c (cons_fix_new_sparc): Use unaligned relocs in
+       the .eh_frame section.
+
 2016-11-13  Anthony Green  <green@moxielogic.org>
 
        * config/tc-moxie.c (md_assemble): Assemble 'bad' opcode.
index 70f5bfb4dd404470ad42cf26ca689808199a7664..d7b9a98a470e582cf75aa0b566a681774ea9099b 100644 (file)
@@ -4957,7 +4957,10 @@ cons_fix_new_sparc (fragS *frag,
          case 8: r = BFD_RELOC_SPARC_TLS_DTPOFF64; break;
          }
     }
-  else if (sparc_no_align_cons)
+  else if (sparc_no_align_cons
+          || /* PR 20803 - relocs in the .eh_frame section
+                need to support unaligned access.  */
+          strcmp (now_seg->name, ".eh_frame") == 0)
     {
       switch (nbytes)
        {
This page took 0.080257 seconds and 4 git commands to generate.