[PATCH] R_ARM_ABS16 and R_ARM_ABS8 overflow checking
Daniel Gutson
dgutson@codesourcery.com
Fri Dec 25 20:40:00 GMT 2009
The attached patch fixes the boundaries of the R_ARM_ABS16 and
R_ARM_ABS8 relocs overflow checking according to the ARM documentation.
I tested this patch by running the gas, binutils, and ld testsuites, the
latter including a test case I added for this fix.
Please let me know if OK to commit.
Daniel.
ChangeLog:
2009-12-25 Daniel Gutson <dgutson@codesourcery.com>
bfd/
* elf32-arm.c (elf32_arm_final_link_relocate): limits
fixed.
ld/testsuite/
* ld-arm/arm-elf.exp (armelftests): New test case added.
* ld-arm/reloc-boundaries.s: New file.
* ld-arm/reloc-boundaries.d: New file.
--
Daniel Gutson
CodeSourcery
www.codesourcery.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reloc_boundaries.patch
Type: text/x-diff
Size: 3084 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091225/3f7be924/attachment.bin>
More information about the Binutils
mailing list