[PATCH v2][BZ #17075] ARM: Fix immediate calculation of R_ARM_TLS_DESC

Maciej W. Rozycki macro@codesourcery.com
Fri Jun 20 18:20:00 GMT 2014


On Fri, 20 Jun 2014, Rich Felker wrote:

> Is this logic correct in general, i.e. is the immediate addend always
> (semantically) zero for symbolic relocations? Or is it legal to have a
> symbolic relocation with an offset, e.g. if a module accesses x[42];
> in __thread int x[50]; but no other elements and the compiler wants to
> generate a relocation referencing x[42] without the need for applying
> an additional offset to the address of x[0] at runtime as part of the
> referencing code?

 This relocation has no addend, please refer to the specification, 
attached to the bug report.

  Maciej



More information about the Libc-alpha mailing list