This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] FT32: Correct 32-bit reloc for BFD_RELOC_32
- From: James Bowman <james dot bowman at ftdichip dot com>
- To: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 7 Jul 2016 15:18:36 +0000
- Subject: [PATCH] FT32: Correct 32-bit reloc for BFD_RELOC_32
- Authentication-results: sourceware.org; auth=none
The reloc for BFD_RELOC_32 was using the the 20-bit. This hack causes
problems in gdb. Fixed it to be the proper 32-bit reloc, R_FT32_32.
OK to apply?
James.
bfd/ChangeLog:
2016-07-07 James Bowman <james.bowman@ftdichip.com>
* elf32-ft32.c (ft32_reloc_map): Use R_FT32_32 for BFD_RELOC_32.
---
diff --git a/bfd/elf32-ft32.c b/bfd/elf32-ft32.c
index 9c5f734..f46031e 100644
--- a/bfd/elf32-ft32.c
+++ b/bfd/elf32-ft32.c
@@ -160,7 +160,7 @@ struct ft32_reloc_map
static const struct ft32_reloc_map ft32_reloc_map [] =
{
{ BFD_RELOC_NONE, R_FT32_NONE },
- { BFD_RELOC_32, R_FT32_20 },
+ { BFD_RELOC_32, R_FT32_32 },
{ BFD_RELOC_16, R_FT32_16 },
{ BFD_RELOC_8, R_FT32_8 },
{ BFD_RELOC_FT32_10, R_FT32_10 },