This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] TLS support for powerpc/powerpc64 (take 2)
On Sat, May 10, 2003 at 09:31:09AM +0930, Alan Modra wrote:
> > You should use init_one_libfunc instead of gen_rtx_SYMBOL_REF
> > so that the proper SYMBOL_REF_FLAGS are set. I'm surprised
> > that you didn't see problems on the ppc64 port because of this.
> That code preceded your SYMBOL_REF_FLAGS changes..
Right, but you've tested the merge, havn't you? The new tests in
symbol_ref_operand should have tripped up something, shouldn't they?
> The reason is that we're storing all tls symbol addresses in .got
> rather than messing with .got2. The idea was to have ld handle all
> tls got entries via relocs rather than needing to explicitly generate
> .got2 entries in gcc.
I don't know enough ppc internals to have any idea what that means.
Perhaps this is a -fPIC i.e. -mminimal-toc thing? If so, does that
mean -fpic could get away with just pic_offset_table_rtx?