Hi Bill, On Sun, Jul 23, 2017 at 12:07:37PM -0500, Bill Schmidt wrote: > Alan added code to have GCC align the .toc section in GCC 7, aligning to > four bytes for 32-bit mode, and 8 bytes for 64-bit mode. This is normally > unnecessary since alignment of the .toc has historically been handled by > the standard linker script. However, people using non-standard toolchains > can still run into problems, so as a courtesy this is now done by the > compiler as well. > > We've recently seen this encountered using an out-of-service compiler, and > would like to prevent any more occurrences by people finding interesting > ways to avoid the standard toolchain. Thus I'd like to backport Alan's > patch to GCC 5 and 6. Alan, please review as well to be sure I didn't > miss any release-specific differences. > > Bootstrapped and tested on powerpc64le-linux-gnu with no regressions. > Are these backports ok?
Sure, if Alan is happy with it, please commit. Segher > 2017-07-23 Bill Schmidt <wschm...@linux.vnet.ibm.com> > > Backport from mainline r235874 > 2016-05-04 Alan Modra <amo...@gmail.com> > > * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op): > Align .toc.