Fix unexpected failures in the linker testsuite for ARM VxWorks targets.
authorNick Clifton <nickc@redhat.com>
Thu, 21 Jan 2016 10:51:25 +0000 (10:51 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 21 Jan 2016 10:51:25 +0000 (10:51 +0000)
commitaebf9be7089c1903581740851ae9ae67ffee2f4b
tree85d66645a7d0137aff56bbf481f679bf8a873383
parent305e13e67faaf940ce6eb708847a655a0735a651
Fix unexpected failures in the linker testsuite for ARM VxWorks targets.

PR ld/19455
* elf32-arm.c (elf32_arm_create_dynamic_sections): Set the ELF
class of the linker stub bfd.
(elf32_arm_check_relocs): Skip check for pic format after
processing a vxWorks R_ARM_ABS12 reloc.
* elflink.c (bfd_elf_final_link): Check for ELFCLASSNONE when
reporting a class mismatch.

* testsuite/ld-arm/vxworks1-lib.dd: Update for current
disassmebler output.
* testsuite/ld-arm/vxworks1-lib.rd: Likewise.
* testsuite/ld-arm/vxworks1.dd: Likewise.
* testsuite/ld-arm/vxworks1.rd: Likewise.
* testsuite/ld-arm/vxworks1.ld: Set the output format.
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elflink.c
ld/ChangeLog
ld/testsuite/ld-arm/vxworks1-lib.dd
ld/testsuite/ld-arm/vxworks1-lib.rd
ld/testsuite/ld-arm/vxworks1.dd
ld/testsuite/ld-arm/vxworks1.ld
ld/testsuite/ld-arm/vxworks1.rd