aboutsummaryrefslogtreecommitdiff
path: root/bfd/reloc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-08-25 15:57:02 +0930
committerAlan Modra <amodra@gmail.com>2022-08-25 17:20:01 +0930
commitc2d7de232bb9483af7a0633151edfec4ee52eeda (patch)
tree6f82308fd175a2764243a11eaaa80c047c5068f3 /bfd/reloc.c
parent45692d91e733233d667665750eabdba8ba98b227 (diff)
downloadbinutils-c2d7de232bb9483af7a0633151edfec4ee52eeda.zip
binutils-c2d7de232bb9483af7a0633151edfec4ee52eeda.tar.gz
binutils-c2d7de232bb9483af7a0633151edfec4ee52eeda.tar.bz2
PR11290, avr-ld "out of range error" is confusing
Don't overload bfd_reloc_outofrange with what is really a domain error (target at odd address), or an overflow. PR 11290 * reloc.c (bfd_reloc_other): Correct comment. * elf32-avr.c (avr_final_link_relocate): Return bfd_reloc_other for unaligned reloc target values. Return bfd_reloc_overflow when stubs are too far away and when R_AVR_LDS_STS_16, R_AVR_PORT6, or R_AVR_PORT5 overflow. (elf32_avr_relocate_section): Report more descriptive relocation errors. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r--bfd/reloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 268e4b1..89b6f7f 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -82,7 +82,7 @@ CODE_FRAGMENT
. {* Unsupported relocation size requested. *}
. bfd_reloc_notsupported,
.
-. {* Unused. *}
+. {* Target specific meaning. *}
. bfd_reloc_other,
.
. {* The symbol to relocate against was undefined. *}