aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-alpha.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-01-26 08:41:30 +0000
committerRichard Henderson <rth@redhat.com>2002-01-26 08:41:30 +0000
commit73896efb9004c33cd002b2175ae37a2ab2932992 (patch)
tree130f54ffa1fbebd116e85abc26f0b0ec87e428ec /bfd/elf64-alpha.c
parent09114b8784e683773ed8aeb63638c04ac5839cb6 (diff)
downloadgdb-73896efb9004c33cd002b2175ae37a2ab2932992.zip
gdb-73896efb9004c33cd002b2175ae37a2ab2932992.tar.gz
gdb-73896efb9004c33cd002b2175ae37a2ab2932992.tar.bz2
* elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
for non-allocated sections.
Diffstat (limited to 'bfd/elf64-alpha.c')
-rw-r--r--bfd/elf64-alpha.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c
index 293d620..ef6e853 100644
--- a/bfd/elf64-alpha.c
+++ b/bfd/elf64-alpha.c
@@ -1,5 +1,5 @@
/* Alpha specific support for 64-bit ELF
- Copyright 1996, 1997, 1998, 1999, 2000, 2001
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
Free Software Foundation, Inc.
Contributed by Richard Henderson <rth@tamu.edu>.
@@ -2501,7 +2501,8 @@ elf64_alpha_check_relocs (abfd, info, sec, relocs)
rent->srel = sreloc;
rent->rtype = r_type;
rent->count = 1;
- rent->reltext = (sec->flags & SEC_READONLY) != 0;
+ rent->reltext = ((sec->flags & (SEC_READONLY | SEC_ALLOC))
+ == (SEC_READONLY | SEC_ALLOC));
rent->next = h->reloc_entries;
h->reloc_entries = rent;