diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2004-02-27 10:03:05 +0000 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2004-02-27 10:03:05 +0000 |
commit | f24957646b5d00cedad49ccaf7835c83d04774ce (patch) | |
tree | 45d7d15dbf18724d2ee8496a7c60b2ffff5bc37c /bfd/elf64-s390.c | |
parent | b0a425030f7f53fb3bf4e451e4f1f4dea0edd388 (diff) | |
download | binutils-redhat-f24957646b5d00cedad49ccaf7835c83d04774ce.tar.gz |
* elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
for pc relative relocs.
(elf_s390_relocate_section): Likewise.
* elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
for pc relative relocs.
(elf_s390_relocate_section): Likewise.
Diffstat (limited to 'bfd/elf64-s390.c')
-rw-r--r-- | bfd/elf64-s390.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c index 2260248fe3..8a919c454f 100644 --- a/bfd/elf64-s390.c +++ b/bfd/elf64-s390.c @@ -1855,9 +1855,7 @@ allocate_dynrelocs (h, inf) if (info->shared) { - if ((h->elf_link_hash_flags & ELF_LINK_HASH_DEF_REGULAR) != 0 - && ((h->elf_link_hash_flags & ELF_LINK_FORCED_LOCAL) != 0 - || info->symbolic)) + if (SYMBOL_REFERENCES_LOCAL (info, h)) { struct elf_s390_dyn_relocs **pp; @@ -2540,10 +2538,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section, && r_type != R_390_PC32DBL && r_type != R_390_PC64) || (h != NULL - && h->dynindx != -1 - && (! info->symbolic - || (h->elf_link_hash_flags - & ELF_LINK_HASH_DEF_REGULAR) == 0)))) + && !SYMBOL_REFERENCES_LOCAL (info, h)))) || (ELIMINATE_COPY_RELOCS && !info->shared && h != NULL |