[PATCH] x86: adjust relocation overflow complaint types
Jan Beulich
JBeulich@novell.com
Thu Jun 16 13:15:00 GMT 2005
This fixes the overflow complaint types for three x86-64 and one i386
relocation types.
Built and tested on i686-pc-linux-gnu and x86_64-unknown-linux-gnu.
Jan
bfd/
2005-06-16 Jan Beulich <jbeulich@novell.com>
* elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
for R_386_PC16.
* elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
--- /home/jbeulich/src/binutils/mainline/2005-06-16/bfd/elf32-i386.c 2005-06-08 14:50:38.000000000 +0200
+++ 2005-06-16/bfd/elf32-i386.c 2005-06-08 15:41:21.000000000 +0200
@@ -95,7 +95,7 @@ static reloc_howto_type elf_howto_table[
HOWTO(R_386_16, 0, 1, 16, FALSE, 0, complain_overflow_bitfield,
bfd_elf_generic_reloc, "R_386_16",
TRUE, 0xffff, 0xffff, FALSE),
- HOWTO(R_386_PC16, 0, 1, 16, TRUE, 0, complain_overflow_bitfield,
+ HOWTO(R_386_PC16, 0, 1, 16, TRUE, 0, complain_overflow_signed,
bfd_elf_generic_reloc, "R_386_PC16",
TRUE, 0xffff, 0xffff, TRUE),
HOWTO(R_386_8, 0, 0, 8, FALSE, 0, complain_overflow_bitfield,
--- /home/jbeulich/src/binutils/mainline/2005-06-16/bfd/elf64-x86-64.c 2005-05-18 08:09:48.000000000 +0200
+++ 2005-06-16/bfd/elf64-x86-64.c 2005-06-08 15:41:21.000000000 +0200
@@ -73,9 +73,9 @@ static reloc_howto_type x86_64_elf_howto
FALSE),
HOWTO(R_X86_64_16, 0, 1, 16, FALSE, 0, complain_overflow_bitfield,
bfd_elf_generic_reloc, "R_X86_64_16", FALSE, 0xffff, 0xffff, FALSE),
- HOWTO(R_X86_64_PC16,0, 1, 16, TRUE, 0, complain_overflow_bitfield,
+ HOWTO(R_X86_64_PC16,0, 1, 16, TRUE, 0, complain_overflow_signed,
bfd_elf_generic_reloc, "R_X86_64_PC16", FALSE, 0xffff, 0xffff, TRUE),
- HOWTO(R_X86_64_8, 0, 0, 8, FALSE, 0, complain_overflow_signed,
+ HOWTO(R_X86_64_8, 0, 0, 8, FALSE, 0, complain_overflow_bitfield,
bfd_elf_generic_reloc, "R_X86_64_8", FALSE, 0xff, 0xff, FALSE),
HOWTO(R_X86_64_PC8, 0, 0, 8, TRUE, 0, complain_overflow_signed,
bfd_elf_generic_reloc, "R_X86_64_PC8", FALSE, 0xff, 0xff, TRUE),
@@ -94,7 +94,7 @@ static reloc_howto_type x86_64_elf_howto
HOWTO(R_X86_64_TLSLD, 0, 2, 32, TRUE, 0, complain_overflow_signed,
bfd_elf_generic_reloc, "R_X86_64_TLSLD", FALSE, 0xffffffff,
0xffffffff, TRUE),
- HOWTO(R_X86_64_DTPOFF32, 0, 2, 32, FALSE, 0, complain_overflow_bitfield,
+ HOWTO(R_X86_64_DTPOFF32, 0, 2, 32, FALSE, 0, complain_overflow_signed,
bfd_elf_generic_reloc, "R_X86_64_DTPOFF32", FALSE, 0xffffffff,
0xffffffff, FALSE),
HOWTO(R_X86_64_GOTTPOFF, 0, 2, 32, TRUE, 0, complain_overflow_signed,
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-mainline-x86-reloc-ovfl.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20050616/1f0fe37a/attachment.ksh>
More information about the Binutils
mailing list