This is the mail archive of the binutils@sourceware.org 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]

Re: [patch 1/2, m68k] Fix bugs in the handling of TLS relocations


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


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