summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2005-10-28 00:29:44 +0000
committerHans-Peter Nilsson <hp@axis.com>2005-10-28 00:29:44 +0000
commit992a9e64c69ee1972cac3a81efc243a942874525 (patch)
treeabdde9addd1e3c8cc31e89ed516a92c271e16525 /bfd/elf32-cris.c
parent8237cb1efc9ab6a95c097a35952c90e8dd038cbc (diff)
downloadgdb-992a9e64c69ee1972cac3a81efc243a942874525.tar.gz
PR ld/1567
* elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set complain_on_overflow field to complain_overflow_dont.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 4580beabd90..06865dcc2e2 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -156,7 +156,12 @@ static reloc_howto_type cris_elf_howto_table [] =
32, /* bitsize */
FALSE, /* pc_relative */
0, /* bitpos */
- complain_overflow_bitfield, /* complain_on_overflow */
+ /* We don't want overflow complaints for 64-bit vma builds
+ for e.g. sym+0x40000000 (or actually sym-0xc0000000 in
+ 32-bit ELF) where sym=0xc0001234.
+ Don't do this for the PIC relocs, as we don't expect to
+ see them with large offsets. */
+ complain_overflow_dont, /* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
"R_CRIS_32", /* name */
FALSE, /* partial_inplace */