aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2006-03-02 09:44:23 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2006-03-02 09:44:23 +0000
commit7c4927199c32bfb2f036a4bda8cf7521747b0f37 (patch)
tree8369c9d7a9cdfc250759f3ac9b88001c69ca1f5e /bfd
parente970df31ca5085c0c9dfe8fce55ad17f6caef8b4 (diff)
downloadfsf-binutils-gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.zip
fsf-binutils-gdb-7c4927199c32bfb2f036a4bda8cf7521747b0f37.tar.gz
fsf-binutils-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')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-ppc.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 5f3191c..1797c84 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-02 Richard Sandiford <richard@codesourcery.com>
+
+ * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
+ bfd_elf32_powerpc_vxworks_vec.
+
2006-03-02 Nick Clifton <nickc@redhat.com>
* elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
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