[Skiboot] [PATCH] Align TOC to 256 bytes

Anton Blanchard anton at samba.org
Fri May 15 07:34:46 AEST 2015

Hi Patrick,

> * What part of the toolchain is forcing the TOC to 256 alignment?
> * Is the alignment on the beginning of the TOC section or the
> TOC-base part of the function pointer tuples  (ABIv1) ?

It's a recent binutils patch from Alan:

commit a27e685fa0a6480bdb07e3be359558524cec89b7
Author: Alan Modra <amodra at gmail.com>
Date:   Tue Apr 21 19:18:24 2015 +0930

    Align .TOC. for PowerPC64
    This change, with prerequisite 0e5fabeb, provides a toc base aligned
    to 256 bytes rather than 8 bytes.  This is necessary for a minor gcc
    optimisation, allowing use of d-form instructions to correctly access
    toc-relative items larger than 8 bytes.


More information about the Skiboot mailing list