This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
alpha textrel fix
- From: Richard Henderson <rth at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Sat, 26 Jan 2002 00:43:49 -0800
- Subject: alpha textrel fix
Noticed while examining libstdc++ headers that .rela.debug_info
had caused DT_TEXTREL to get set.
r~
* elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
for non-allocated sections.
Index: elf64-alpha.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-alpha.c,v
retrieving revision 1.54
diff -c -p -d -r1.54 elf64-alpha.c
*** elf64-alpha.c 2002/01/23 21:51:53 1.54
--- elf64-alpha.c 2002/01/26 08:39:28
*************** elf64_alpha_check_relocs (abfd, info, se
*** 2501,2507 ****
rent->srel = sreloc;
rent->rtype = r_type;
rent->count = 1;
! rent->reltext = (sec->flags & SEC_READONLY) != 0;
rent->next = h->reloc_entries;
h->reloc_entries = rent;
--- 2501,2508 ----
rent->srel = sreloc;
rent->rtype = r_type;
rent->count = 1;
! rent->reltext = ((sec->flags & (SEC_READONLY | SEC_ALLOC))
! == (SEC_READONLY | SEC_ALLOC));
rent->next = h->reloc_entries;
h->reloc_entries = rent;