aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2021-05-06 20:51:25 +0900
committerStafford Horne <shorne@gmail.com>2021-05-06 20:51:25 +0900
commit3c3de29b048bca6b4aa4235c647b9328e71801b6 (patch)
tree51ae0f8277a170a874621e5d1dfef6b6cce64077 /bfd/ChangeLog
parent0b3e14c90283c5d234884d0ebe8510bc3c9bc687 (diff)
downloadbinutils-3c3de29b048bca6b4aa4235c647b9328e71801b6.zip
binutils-3c3de29b048bca6b4aa4235c647b9328e71801b6.tar.gz
binutils-3c3de29b048bca6b4aa4235c647b9328e71801b6.tar.bz2
or1k: Avoid R_OR1K_GOT16 overflow failures in presence of R_OR1K_GOT_AHI16
Now that we support R_OR1K_GOT_AHI16 we can relax the R_OR1K_GOT16 overflow validation check if the section has R_OR1K_GOT_AHI16. We cannot simple disable R_OR1K_GOT16 overflow validation as there will still be binaries that will have only R_OR1K_GOT16. The R_OR1K_GOT_AHI16 relocation will only be added by GCC when building with the option -mcmodel=large. This assumes that R_OR1K_GOT_AHI16 will come before R_OR1K_GOT16, which is the code pattern that will be emitted by GCC. bfd/ChangeLog: PR 21464 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16 overflow check if we have R_OR1K_GOT_AHI16 followed by R_OR1K_GOT16.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c4a83df..8293e9d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,13 @@
2021-05-06 Stafford Horne <shorne@gmail.com>
PR 21464
+ * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
+ overflow check if we have R_OR1K_GOT_AHI16 followed by
+ R_OR1K_GOT16.
+
+2021-05-06 Stafford Horne <shorne@gmail.com>
+
+ PR 21464
* bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
* elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
(or1k_final_link_relocate, or1k_elf_relocate_section,