diff options
author | Nick Clifton <nickc@redhat.com> | 2011-07-28 13:22:24 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-07-28 13:22:24 +0000 |
commit | b4cd0b8e6c7b4203a46bdda9aecac8f1716a5423 (patch) | |
tree | d07acb92c1113da702206c1064279ac9ffc7e04a /bfd/elf64-hppa.c | |
parent | 9b05d45ddb95ac7f1578ffc5fa94332c2b49ccc3 (diff) | |
download | binutils-redhat-b4cd0b8e6c7b4203a46bdda9aecac8f1716a5423.tar.gz |
* elf64-hppa.c (elf_hppa_final_link_relocate): Fix handling of out
of range branches.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r-- | bfd/elf64-hppa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index 92adf78901..057a92de9a 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -3272,13 +3272,13 @@ elf_hppa_final_link_relocate (Elf_Internal_Rela *rel, && value + addend + max_branch_offset >= 2*max_branch_offset) { (*_bfd_error_handler) - (_("%B(%A+0x%lx): cannot reach %s"), + (_("%B(%A+0x" BFD_VMA_FMT "x): cannot reach %s"), input_bfd, input_section, offset, - eh->root.root.string); + eh ? eh->root.root.string : "unknown"); bfd_set_error (bfd_error_bad_value); - return bfd_reloc_notsupported; + return bfd_reloc_overflow; } /* Adjust for any field selectors. */ |