This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR 475: strip doesn't presever TLS type


On Wed, Nov 24, 2004 at 02:37:33PM -0800, H. J. Lu wrote:
> On Wed, Nov 24, 2004 at 09:33:23PM +0000, Chris Lingard wrote:
> > 
> > This was with a stripped libc.a; (strip -g ..  --strip-debug )
> > 
> > I rebuilt glibc, checked; but did not strip it; and mod-init-tools
> > built OK. 
> > 
> > I do not know how to make it more verbose; if I can help you in any way
> > please let me know
> 
> I opened a bug
> 
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=574
> 

Please try this patch.



H.J.
----
2004-11-24  H.J. Lu  <hongjiu.lu@intel.com>

	PR 574:
	* elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.

--- bfd/elfcode.h.tls	2004-11-16 09:59:29.000000000 -0800
+++ bfd/elfcode.h	2004-11-24 14:43:21.829421616 -0800
@@ -1158,6 +1158,9 @@ elf_slurp_symbol_table (bfd *abfd, asymb
 	    case STT_OBJECT:
 	      sym->symbol.flags |= BSF_OBJECT;
 	      break;
+	    case STT_TLS:
+	      sym->symbol.flags |= BSF_THREAD_LOCAL;
+	      break;
 	    }
 
 	  if (dynamic)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]