Bug#909396: systemd: FTBFS on hppa and x32 - relocation can not be used when making a shared object

Michael Biebl biebl at debian.org
Sun Sep 23 21:44:39 BST 2018


Am 23.09.18 um 22:27 schrieb John David Anglin:
> Well the problem was latent in 239-7 and probably gcc changed.  The
> thing is the error points
> to an error in the link command.  On hppa, it is almost always necessary
> to link shared and pie
> objects with -fPIC or -fPIE, respectively.  There are compilations in
> the link process and
> the generated objects need to be position independent when doing shared
> and pie links.
> 
> The attached patch fixes the failing link command although I'm not sure
> it's optimal as
> generally -fPIE and -pie need to be specified together.  Meson appears
> to test the options
> separately.  Putting them together as one option doesn't work.  The
> systemd build completes
> with the patch.  There was one timeout in the testsuite but the system
> was under high load.

Looking at the "ld" man page, it doesn't say anything about -fPIE, only
about -pie.
Can you please provide some references why on hppa the linker needs
-fPIE in addition to -pie


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180923/a61a86e3/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list