[GOLD] PowerPC TLS fixes

Ian Lance Taylor iant@google.com
Wed Sep 12 18:29:00 GMT 2012


On Wed, Sep 12, 2012 at 10:06 AM, H.J. Lu <hjl.tools@gmail.com> wrote:
>
> The template size parameter is for GOT size, which
> is independent of the template size parameter for
>
> // A regular object file.  This is size and endian specific.
>
> template<int size, bool big_endian>
> class Sized_relobj_file : public Sized_relobj<size, big_endian>
> {
>
> Ian, how should we fix it?

I committed this patch.  I think this is the right fix.  Please close
the PR if it is fixed for you.

Ian

2012-09-12  Ian Lance Taylor  <iant@google.com>

	PR gold/14570
	* output.cc: Rename Output_data_got template parameter from size
	to got_size for all functions.  Compile all variants of
	Output_data_got.
	(Output_data_got::Got_entry::write): Correct use of size for
	symbol value.  Use local_is_tls rather than casting to
	Sized_relobj_file.
	* object.h (class Object): Add local_is_tls and do_local_is_tls.
	(class Sized_relobj_file): Add do_local_is_tls.
	* incremental.h (class Sized_relobj_incr): Add do_local_is_tls.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: application/octet-stream
Size: 13742 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20120912/5c27f0cf/attachment.obj>


More information about the Binutils mailing list