public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* alpha textrel fix
@ 2002-01-26  2:25 Richard Henderson
  0 siblings, 0 replies; only message in thread
From: Richard Henderson @ 2002-01-26  2:25 UTC (permalink / raw)
  To: binutils

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-01-26  8:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-26  2:25 alpha textrel fix Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).