This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: PR 475: strip doesn't presever TLS type
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Chris Lingard <chris at stockwith dot co dot uk>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 24 Nov 2004 14:48:35 -0800
- Subject: PATCH: PR 475: strip doesn't presever TLS type
- References: <200411242133.23378.chris@stockwith.co.uk> <20041124223733.GA24879@lucon.org>
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)