i386: Don't relocate section when check_relocs failed
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2016 11:31:54 +0000 (04:31 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 29 Apr 2016 11:31:54 +0000 (04:31 -0700)
commitc337a1627c7e0edf6d46e66dee513c56975d0625
treeb8d42703d3ad38ea188b57e82d0f8925f8d7bc9a
parentafd9acee15d55fccf2a25b72c99303f7cbaaa1c2
i386: Don't relocate section when check_relocs failed

No need to relocate section when check_relocs failed.

* elf32-i386.c (check_relocs_failed): New.
(elf_i386_check_relocs): Set check_relocs_failed on error.
(elf_i386_relocate_section): Skip if check_relocs failed.
bfd/ChangeLog
bfd/elf32-i386.c