This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch 1/2, m68k] Fix bugs in the handling of TLS relocations
- From: Maxim Kuvyrkov <maxim at codesourcery dot com>
- To: binutils <binutils at sourceware dot org>
- Cc: Nick Clifton <nickc at redhat dot com>, Andreas Schwab <schwab at linux-m68k dot org>
- Date: Tue, 25 Aug 2009 16:16:13 +0400
- Subject: Re: [patch 1/2, m68k] Fix bugs in the handling of TLS relocations
- References: <4A93D4DD.5010609@codesourcery.com>
Maxim Kuvyrkov wrote:
Good day,
The attached patch fixes bug in processing of TLS symbols which are
defined in libraries that are not linked against directly, but rather to
satisfy other library's dependency. E.g.,
Ah, and the following hunk has nothing to do with the described problem
per se, but rather adds the handling of the DF_STATIC_TLS flag.
+ if (ELF32_R_TYPE (rel->r_info) == R_68K_TLS_TPREL32
+ && info->shared)
+ /* Do the special chorus for libraries with static TLS. */
+ info->flags |= DF_STATIC_TLS;
+
/* This symbol requires a global offset table entry. */
if (dynobj == NULL)
--
Maxim