diff options
author | Richard Henderson <rth@redhat.com> | 2002-01-26 08:41:30 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2002-01-26 08:41:30 +0000 |
commit | eea9c52146b4e875f80f7b259558278ffb35d4bf (patch) | |
tree | 5b91e9be6657d69c39dc3cc51891b1932ae90129 /bfd | |
parent | f18a5b58969395ba7cc32d559faf7841cfa35940 (diff) | |
download | gdb-eea9c52146b4e875f80f7b259558278ffb35d4bf.tar.gz |
* elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
for non-allocated sections.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 9 | ||||
-rw-r--r-- | bfd/elf64-alpha.c | 5 |
2 files changed, 10 insertions, 4 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9f0c014deab..02a47ace9de 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,9 +1,14 @@ -2002-01-19 Mark Kettenis <kettenis@gnu.org> +2002-01-26 Richard Henderson <rth@redhat.com> + + * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext + for non-allocated sections. + +2002-01-25 Mark Kettenis <kettenis@gnu.org> * elf.c (elfcore_write_prstatus): Make sure we pass the address of prstat.pr_reg even if it is a struct. -2002-01-22 Steve Ellcey <sje@cup.hp.com> +2002-01-25 Steve Ellcey <sje@cup.hp.com> * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX. diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 293d62018ca..ef6e853615d 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; |