diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-02 09:44:23 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2006-03-02 09:44:23 +0000 |
commit | 7c4927199c32bfb2f036a4bda8cf7521747b0f37 (patch) | |
tree | 8369c9d7a9cdfc250759f3ac9b88001c69ca1f5e /bfd/elf32-ppc.c | |
parent | e970df31ca5085c0c9dfe8fce55ad17f6caef8b4 (diff) | |
download | gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.zip gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.tar.gz gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.tar.bz2 |
bfd/
* elf32-ppc.c (is_ppc_elf_target): Return true if the target is
bfd_elf32_powerpc_vxworks_vec.
ld/testsuite/
* ld-i386/vxworks1.ld (.data): New section.
* ld-i386/vxworks1-lib.s: Add a pointer to a local symbol.
* ld-i386/vxworks1-lib.rd: Test for the associated reloc.
* ld-powerpc/vxworks1.ld (.data): New section.
* ld-powerpc/vxworks1-lib.s: Add a pointer to a local symbol.
* ld-powerpc/vxworks1-lib.rd: Test for the associated reloc.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index 68cead2..b3d8308 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -2679,9 +2679,12 @@ static bfd_boolean is_ppc_elf_target (const struct bfd_target *targ) { extern const bfd_target bfd_elf32_powerpc_vec; + extern const bfd_target bfd_elf32_powerpc_vxworks_vec; extern const bfd_target bfd_elf32_powerpcle_vec; - return targ == &bfd_elf32_powerpc_vec || targ == &bfd_elf32_powerpcle_vec; + return (targ == &bfd_elf32_powerpc_vec + || targ == &bfd_elf32_powerpc_vxworks_vec + || targ == &bfd_elf32_powerpcle_vec); } /* Hook called by the linker routine which adds symbols from an object |