diff options
author | Alan Modra <amodra@bigpond.net.au> | 2009-09-04 06:54:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2009-09-04 06:54:12 +0000 |
commit | 92ef8355b75e844940aefee9e9675a203d84dc0a (patch) | |
tree | 7a36802d29eb106b827979c2fe4869278081767b /bfd/elf32-spu.c | |
parent | aed699318852a2c8d2fe676ee1216644e7513404 (diff) | |
download | binutils-redhat-92ef8355b75e844940aefee9e9675a203d84dc0a.tar.gz |
* elf32-spu.c (spu_elf_relocate_section): Correct 2009-07-24 logic.
Diffstat (limited to 'bfd/elf32-spu.c')
-rw-r--r-- | bfd/elf32-spu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 16f9450454..13d3a53104 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -4906,8 +4906,9 @@ spu_elf_relocate_section (bfd *output_bfd, continue; /* Change "a rt,ra,rb" to "ai rt,ra,0". */ - if (r_type == R_SPU_ADD_PIC && h != NULL - && (h->def_regular || ELF_COMMON_DEF_P (h))) + if (r_type == R_SPU_ADD_PIC + && h != NULL + && !(h->def_regular || ELF_COMMON_DEF_P (h))) { bfd_byte *loc = contents + rel->r_offset; loc[0] = 0x1c; |