From b20df2dcb5b3dac87cdfbe87eb3842f6bf867c0f Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 23 Oct 2002 20:21:21 +0000 Subject: [PATCH] * elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic relocs into shared lib non-allocated reloc sections. --- bfd/ChangeLog | 5 +++++ bfd/elf64-alpha.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 528f431cf1..af84d2f1ee 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-10-23 Jakub Jelinek + + * elf64-alpha.c (elf64_alpha_check_relocs): Only put maybe_dynamic + relocs into shared lib non-allocated reloc sections. + 2002-10-23 Nathan Tallent * dwarf2.c (add_line_info): Ensure that the line_info_table is diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 2eb5d10430..ab053f96bf 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -3100,7 +3100,7 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs) case R_ALPHA_REFLONG: case R_ALPHA_REFQUAD: - if (info->shared || maybe_dynamic) + if ((info->shared && (sec->flags & SEC_ALLOC)) || maybe_dynamic) need = NEED_DYNREL; break; -- 2.11.0