This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PowerPC] Garbage collecting .toc entries in a non-adhoc way (section group)
On Mon, Mar 02, 2020 at 06:02:41PM -0800, Fangrui Song wrote:
> Thanks for the confirmation that switching to @got may be beneficial.
> Is there any drawback?
The TOC scheme may give better locality of reference and thus better
cache performance. The TOC layout is under control of the compiler,
which generally has better information about data access patterns than
the linker. Mind you, powerpc gcc doesn't really do anything about
optimising the TOC, but it would be possible.
> If you think @got is good
Yes, I do.
--
Alan Modra
Australia Development Lab, IBM