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

Maxim Kuvyrkov maxim@codesourcery.com
Tue Aug 25 18:05:00 GMT 2009


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



More information about the Binutils mailing list