Bug#940266: z3: FTBFS on hppa - objects in shared libraries need to be compiled with -fPIC

John David Anglin dave.anglin at bell.net
Sat Sep 14 21:44:31 BST 2019


On 2019-09-14 4:27 p.m., Sylvestre Ledru wrote:
> For curiosity, do you know why?
Shared libraries need to be position independent.  Same for PIE executables.  The default
on 32-bit hppa is to generate non-position independent code.  It is somewhat more efficient.
It uses some different relocations and global data is loaded using global pointer.  One doesn't
need to load address from got.

This runtime model was defined by HP years ago (1980s).  Strangely, HP decided to generate
PIC code by default for hppa64.

Regards,
Dave

-- 
John David Anglin  dave.anglin at bell.net



More information about the Pkg-llvm-team mailing list