diff options
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r-- | bfd/elf32-i386.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c index 686c0682fb0..793fb39dfa4 100644 --- a/bfd/elf32-i386.c +++ b/bfd/elf32-i386.c @@ -2202,20 +2202,19 @@ do_size: may need to keep relocations for symbols satisfied by a dynamic library if we manage to avoid copy relocs for the symbol. */ - if ((bfd_link_pic (info) - && (sec->flags & SEC_ALLOC) != 0 - && (r_type != R_386_PC32 - || (h != NULL - && (! (bfd_link_pie (info) - || SYMBOLIC_BIND (info, h)) - || h->root.type == bfd_link_hash_defweak - || !h->def_regular)))) - || (ELIMINATE_COPY_RELOCS - && !bfd_link_pic (info) - && (sec->flags & SEC_ALLOC) != 0 - && h != NULL - && (h->root.type == bfd_link_hash_defweak - || !h->def_regular))) + if ((sec->flags & SEC_ALLOC) != 0 + && ((bfd_link_pic (info) + && (r_type != R_386_PC32 + || (h != NULL + && (! (bfd_link_pie (info) + || SYMBOLIC_BIND (info, h)) + || h->root.type == bfd_link_hash_defweak + || !h->def_regular)))) + || (ELIMINATE_COPY_RELOCS + && !bfd_link_pic (info) + && h != NULL + && (h->root.type == bfd_link_hash_defweak + || !h->def_regular)))) { struct elf_dyn_relocs *p; struct elf_dyn_relocs **head; |