|
From: | clegg89 at gmail dot com |
Subject: | [Bug ld/21523] Relocation for R_ARM_THM_ALU_PREL_11_0 is not calculated correctly |
Date: | Sun, 28 May 2017 15:30:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21523 --- Comment #2 from clegg89 at gmail dot com --- I have rebuilt binutils and verified that linking my project with the change described fixes my issue. Here is the patch: diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c index 1725c22..b1297d9 100644 --- a/bfd/elf32-arm.c +++ b/bfd/elf32-arm.c @@ -10509 +10509 @@ elf32_arm_final_link_relocate (reloc_howto_type * howto, - value = relocation; + value = abs(relocation); I will try to develop a simple test case which demonstrates the issue. I am referring to another bug report (https://sourceware.org/bugzilla/show_bug.cgi?id=21458) which should help in generating a suitable test case. Is there anything else I need to work on in order to submit this patch? I am happy to provide anything necessary but I'm unclear as to the exact process. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |