[cfarm-users] PowerPC 32 bit abi on gcc110.fsffrance.org

Bruno Haible bruno at clisp.org
Mon Sep 9 23:16:44 CEST 2019


Paulo César Pereira de Andrade wrote:
>   When testing on gcc110.fsffrance.org I got confused as there were no
> function descriptors, and the float abi to call varargs functions did
> not match.

Indeed, function descriptors are a difference between the ABIs as well:

On powerpc-aix and powerpc64-aix, a function pointer is actually a pointer to a
struct {
  void* code_address;
  void* toc_pointer;  /* gets loaded into register r2 */
  void* static_chain; /* gets loaded into register r11 */
}.

Likewise on powerpc64-linux (but not on powerpc-linux and
not on powerpc64-elfv2-linux!).

Bruno



More information about the cfarm-users mailing list