On Tue, Oct 23, 2012 at 6:34 PM, Alan Modra <amo...@gmail.com> wrote: > Gold on powerpc64 doesn't support old ABI objects, but libffi contains > old ABI assembly. This patch modifies those files to support both old > and new ABI, and adds a builtin define to powerpc64 gcc that can be > used to select between the ABIs in assembly. I figure a define is > generally useful, and more robust than trying to duplicate gcc > configury in libffi (which could be overridden by CFLAGS anyway). > Bootstrapped and regression tested powerpc64-linux. OK to apply > mainline? > > gcc/ > * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define > _CALL_LINUX. > libffi/ > * src/powerpc/linux64_closure.S: Add new ABI support. > * src/powerpc/linux64.S: Likewise.
The patch is okay. But the libffi changes need to be submitted upstream to the libffi repository with libffi-discuss and Anthony Green. Thanks, David