[patch][gold] Fix R_ARM_TLS_LE32 when there is no TLS segment
Doug Kwan (關振德)
Sat May 22 08:38:00 GMT 2010
How was this tested?
在 2010年5月21日上午1:14，Rafael Espindola <email@example.com> 寫道：
> The attached patch fixes R_ARM_TLS_LE32 relocations when there is no TLS
> segment. This can happen with linker scripts. I think the old code was
> also wrong in the case we have a .tbss and a .tdata section. The relocations
> would be correct for the section with the largest address, but not for the
> other one.
> 2010-05-20 Rafael Espindola <firstname.lastname@example.org>
> * arm.cc (relocated_section): New.
> (Target_arm<big_endian>::Relocate::relocate_tls): Use
> relocated_section and Layout::tls_section.
> * layout.cc (Layout::Layout): Initialize tls_section_.
> (Layout::compute_tls_section): New.
> * layout.h (Layout::tls_section, Layout::compute_tls_section,
> Layout::tls_section_): New.
> Rafael Ávila de Espíndola
More information about the Binutils