[PATCH ARC 1/5]: Dynamic relocs verification for dynindx == -1

Cupertino Miranda Cupertino.Miranda@synopsys.com
Mon Apr 4 12:49:00 GMT 2016
Hi all,

Please review.
This patch strengths verification that no dynamic relocation is
generated with an invalid symbol.

Best regards,
Cupertino

bfd/ChangeLog:

Cupertino Miranda  <cmiranda@synopsys.com>
    elf32-arc.c (name_for_global_symbol): Added assert to check for
    symbol index.
    (elf_arc_relocate_section): Added and changed asserts, validating
    the synamic symbol index.
    (elf_arc_finish_dynamic_symbol): Do not fill the dynamic relocation
    if symbol has dynindx set to -1.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-DynSymIssue.patch
Type: text/x-patch
Size: 2680 bytes
Desc: 0001-DynSymIssue.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20160404/d48a41f2/attachment.bin>


More information about the Binutils mailing list