diff options
author | Paul Koning <paulkoning@comcast.net> | 2023-01-04 22:29:00 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-01-05 14:33:27 +1030 |
commit | 38afcc0c69d2f547d47fdba12ed5b090ae2b976e (patch) | |
tree | ff18174f4e86476ecfb58e89a0ff4770aaa2909c /bfd | |
parent | ddfc4317d5b99c284bf112819f00f149f7e94600 (diff) | |
download | gdb-38afcc0c69d2f547d47fdba12ed5b090ae2b976e.zip gdb-38afcc0c69d2f547d47fdba12ed5b090ae2b976e.tar.gz gdb-38afcc0c69d2f547d47fdba12ed5b090ae2b976e.tar.bz2 |
PR29963, PDP11 link produces spurious relocation truncated messages
PDP11 is a 16-bit processor with 16-bit logical addresses. Therefore
wrapping should be allowed on the 16-bit relocs, and may as well be
allowed for the 32-bit reloc too.
PR 29963
* pdp11.c (howto_table_pdp11): Use complain_overflow_dont.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/pdp11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/pdp11.c b/bfd/pdp11.c index 2893634..862cf49 100644 --- a/bfd/pdp11.c +++ b/bfd/pdp11.c @@ -280,9 +280,9 @@ static bool separate_i_d = false; reloc_howto_type howto_table_pdp11[] = { /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone */ -HOWTO( 0, 0, 2, 16, false, 0, complain_overflow_signed,0,"16", true, 0x0000ffff,0x0000ffff, false), -HOWTO( 1, 0, 2, 16, true, 0, complain_overflow_signed,0,"DISP16", true, 0x0000ffff,0x0000ffff, false), -HOWTO( 2, 0, 4, 32, false, 0, complain_overflow_signed,0,"32", true, 0x0000ffff,0x0000ffff, false), +HOWTO( 0, 0, 2, 16, false, 0, complain_overflow_dont,0,"16", true, 0x0000ffff,0x0000ffff, false), +HOWTO( 1, 0, 2, 16, true, 0, complain_overflow_dont,0,"DISP16", true, 0x0000ffff,0x0000ffff, false), +HOWTO( 2, 0, 4, 32, false, 0, complain_overflow_dont,0,"32", true, 0x0000ffff,0x0000ffff, false), }; #define TABLE_SIZE(TABLE) (sizeof(TABLE)/sizeof(TABLE[0])) |