From: Richard Henderson Date: Sat, 26 Jan 2002 08:41:30 +0000 (+0000) Subject: * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext X-Git-Tag: binutils-2_12-branchpoint~273 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73896efb9004c33cd002b2175ae37a2ab2932992;p=platform%2Fupstream%2Fbinutils.git * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext for non-allocated sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9f0c014..02a47ac 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,9 +1,14 @@ -2002-01-19 Mark Kettenis +2002-01-26 Richard Henderson + + * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext + for non-allocated sections. + +2002-01-25 Mark Kettenis * 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 +2002-01-25 Steve Ellcey * 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 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 . @@ -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;