mbox series

[v2,0/2] Correct absolute (SHN_ABS) symbol run-time calculation [BZ #19818]

Message ID alpine.DEB.2.00.1802201804140.3553@tp.orcam.me.uk
Headers show
Series Correct absolute (SHN_ABS) symbol run-time calculation [BZ #19818] | expand

Message

Maciej W. Rozycki Feb. 20, 2018, 6:37 p.m. UTC
Hi,

 This mini patch series addresses the issue filed as BZ #19818 where 
absolute (SHN_ABS) symbol are incorrectly relocated by the base address at 
run time, whereas their values are supposed to remain unaffected by 
relocation.

 As we have run-time symbol address calculations (often made in a slightly 
but insignificantly different way) scattered throughout our tree I have 
decided to unify all that code, hopefully making it cleaner and easier to 
maintain, and made it patch 1/2 in this series.  Then patch 2/2 is the 
actual fix, which owing to 1/2 has become a one-liner.

 This updated v2 addresses Andreas's concern and an issue with dladdr(3) 
family of calls.  It has been regression-tested with the `i686-linux' and 
`x86_64-linux' targets.

 See individual change descriptions for details.

  Maciej