From b2efcd36528464df78f6ffdde4be819cf70ac393 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Fri, 28 Oct 2005 00:29:44 +0000 Subject: [PATCH] PR ld/1567 * elf32-cris.c (cris_elf_howto_table) : Set complain_on_overflow field to complain_overflow_dont. --- bfd/ChangeLog | 6 ++++++ bfd/elf32-cris.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a8895921fe..d1612fab33 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2005-10-28 Hans-Peter Nilsson + + PR ld/1567 + * elf32-cris.c (cris_elf_howto_table) : Set + complain_on_overflow field to complain_overflow_dont. + 2005-10-27 Alan Modra PR 973 diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c index 4580beabd9..06865dcc2e 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 */ -- 2.34.1