[Pkg-uml-pkgs] Bug#837579: user-mode-linux: FTBFS with bindnow and PIE enabled

Bálint Réczey balint at balintreczey.hu
Tue Sep 27 20:15:52 UTC 2016


2016-09-27 18:39 GMT+02:00 Ritesh Raj Sarraf <rrs at debian.org>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On Sun, 2016-09-25 at 22:28 +0200, Bálint Réczey wrote:
>> > I just built locally with your patches applied. It fixes the build. But
>> lintian
>> > still complains about hardening flags.
>> >
>> > I: user-mode-linux: hardening-no-pie usr/bin/linux.uml
>> > W: user-mode-linux: hardening-no-relro usr/bin/linux.uml
>> > I: user-mode-linux: hardening-no-bindnow usr/bin/linux.uml
>>
>> It is expected, since PIE is still not used.
>>
>> I tried using -fPIE and -fPIC to allow PIE but kernel mode code did
>> not allow those
>> thus I believe the proposed patch is the way to go, disabling PIE for
>> UML for now.
>
> So I'm confused. The bug report is about FTBFS because bindnow and PIE were
> enabled.

It is about the FTBFS when the compiler and dpkg defaults to using
PIE (and bindnow).

>
> Should the bug report be closed with an exception for UML ?

I believe so. Since I see no way of compiling UML with PIE PIE should
be disabled explicitly to allow the switch in GCC's default.

Cheers,
Balint



More information about the Pkg-uml-pkgs mailing list