[patch][gold] Fix R_ARM_TLS_LE32 when there is no TLS segment

Doug Kwan (關振德) dougkwan@google.com
Sat May 22 08:38:00 GMT 2010


How was this tested?

-Doug

在 2010年5月21日上午1:14,Rafael Espindola <espindola@google.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  <espindola@google.com>
>
>        * 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.
>
> (Cheers,
> --
> Rafael Ávila de Espíndola
>



More information about the Binutils mailing list