Fix sanitization problems in the BFD library when running the linker testsuite for...
authorNick Clifton <nickc@redhat.com>
Wed, 26 Aug 2020 16:43:39 +0000 (17:43 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 26 Aug 2020 16:43:39 +0000 (17:43 +0100)
commit8c51f2f291a5459e1eabd000b2c52e5de52b4c56
tree6469a3ac3f202e3179f0181a0f986ca947ed37cf
parenteae0b5c3b2d6b76c3ed80146bc938e0d6b7e9fec
Fix sanitization problems in the BFD library when running the linker testsuite for the AVR target.

PR 26433
* elf32-avr.c (avr_final_link_relocate):  Fix undefined shift
behaviour.
(avr_elf32_load_records_from_section): Use bfd_get_16 and
bfd_get_32 to load values from potentially unaligned pointers.
bfd/ChangeLog
bfd/elf32-avr.c