This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [patch][gold] Fix R_ARM_TLS_LE32 when there is no TLS segment
- From: =?big5?b?RG91ZyBLd2FuICjD9q62vHcp?= <dougkwan at google dot com>
- To: Rafael Espindola <espindola at google dot com>
- Cc: Binutils <binutils at sourceware dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Sat, 22 May 2010 16:37:54 +0800
- Subject: Re: [patch][gold] Fix R_ARM_TLS_LE32 when there is no TLS segment
- References: <AANLkTilnRgyNamFlzltj0_Ez5FUQcJ52Qj-DSqWFWv80@mail.gmail.com>
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
>