bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add check for -no-pie if the compiler default to -fPIE


From: Magnus Granberg
Subject: Re: Add check for -no-pie if the compiler default to -fPIE
Date: Sat, 21 May 2016 20:53:48 +0200
User-agent: KMail/4.14.10 (Linux/4.1.6-hardened-r1; KDE/4.14.16; x86_64; ; )

On Saturday 21 May 2016 19.26.18 you wrote:
> 21.05.2016 19:02, Magnus Granberg пишет:
> > On Saturday 21 May 2016 18.55.11 you wrote:
> >> 21.05.2016 17:47, Magnus Granberg пишет:
> >>> When Grub is compile with gcc 6.1 that have --enable-defult-pie set.
> >>> It fail with.
> >>> -ffreestanding   -m32 -Wl,-melf_i386 -Wl,--build-id=none  -nostdlib
> >>> -Wl,-N
> >>> -Wl,-r,-d   - o trig.module  trig_module-trigtables.o
> >>> grep 'MARKER' gcry_whirlpool.marker.new > gcry_whirlpool.marker; rm -f
> >>> gcry_whirlpool.marker.new
> >>> /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../x86_64-pc-linux-gnu/b
> >>> in
> >>> /ld: -r and - shared may not be used together
> >>> collect2: error: ld returned 1 exit status
> >>> Makefile:26993: recipe for target 'trig.module' failed
> >>> 
> >>> 
> >>> 2016-05-21  Magnus Granberg  <address@hidden>
> >>> 
> >>>   acinclude.m4: Add check for -no-pie.    configure.ac: Add -no-pie to
> >>> 
> >>> TARGET_LDFLAGS if needed.
> >>> ...
> >> 
> >> Please test with current master:
> >> 
> >> commit f4d35d49e32c29183b3492da18ea480d91716efe
> >> Author: Andrei Borzenkov <address@hidden>
> >> Date:   Tue Mar 22 20:12:22 2016 +0300
> >> 
> >>     configure: set -fno-pie together with -fno-PIE
> > 
> > Still fail the same way
> 
> Please send full config.log and output of make.
Gcc 6.1 pass -pie to the linker if is configure with --enable-default-pie
When linking with -r it don't mix well with -pie/-shared
Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=583042 with logs
Patch updated

Attachment: grub-ld_nopie.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]