This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[arm] Use prel31 in EH table indices
- From: Paul Brook <paul at codesourcery dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 8 Dec 2004 16:32:53 +0000
- Subject: [arm] Use prel31 in EH table indices
- Organization: CodeSourcery
The first word of an Arm exception index table should be an R_ARM_PREL31
relocation of the function start. We were using R_ARM_REL32.
Tested with cross to arm-none-eabi.
Ok?
Paul
2004-12-08 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (s_arm_unwind_fnend): Use R_ARM_PREL31 relocation
for function start.
* testsuite/gas/arm/unwind.d: Expect R_ARM_PREL31 relocations.
Index: gas/config/tc-arm.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-arm.c,v
retrieving revision 1.186
diff -u -p -r1.186 tc-arm.c
--- gas/config/tc-arm.c 3 Dec 2004 01:22:14 -0000 1.186
+++ gas/config/tc-arm.c 7 Dec 2004 18:02:47 -0000
@@ -14079,7 +14079,7 @@ s_arm_unwind_fnend (int ignored ATTRIBUT
/* Self relative offset of the function start. */
fix_new (frag_now, where, 4, unwind.proc_start, 0, 1,
- BFD_RELOC_32);
+ BFD_RELOC_ARM_PREL31);
if (val)
/* Inline exception table entry. */
Index: gas/testsuite/gas/arm/unwind.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arm/unwind.d,v
retrieving revision 1.2
diff -u -p -r1.2 unwind.d
--- gas/testsuite/gas/arm/unwind.d 17 Nov 2004 17:50:24 -0000 1.2
+++ gas/testsuite/gas/arm/unwind.d 7 Dec 2004 18:02:48 -0000
@@ -10,14 +10,14 @@ OFFSET TYPE VALUE
RELOCATION RECORDS FOR \[.ARM.exidx\]:
OFFSET TYPE VALUE
-00000000 R_ARM_REL32 .text
-00000008 R_ARM_REL32 .text
+00000000 R_ARM_PREL31 .text
+00000008 R_ARM_PREL31 .text
0000000c R_ARM_PREL31 .ARM.extab
-00000010 R_ARM_REL32 .text
+00000010 R_ARM_PREL31 .text
00000014 R_ARM_PREL31 .ARM.extab
-00000018 R_ARM_REL32 .text
+00000018 R_ARM_PREL31 .text
0000001c R_ARM_PREL31 .ARM.extab
-00000020 R_ARM_REL32 .text
+00000020 R_ARM_PREL31 .text
Contents of section .text: