Bug#837493: grub2: FTBFS with bindnow and PIE enabled

Balint Reczey balint at balintreczey.hu
Sun Sep 11 23:29:32 UTC 2016


Source: grub2
Version: 2.02~beta2-36
Severity: important
User: balint at balintreczey.hu
Usertags: pie-bindnow-20160906
Justification: FTBFS on amd64 with extra hardening

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64 with patched GCC and dpkg.

The rebuild tested if packages are ready for a transition
enabling PIE and bindnow for amd64.

For more information about the changes to sid's dpkg and GCC please
visit:
 https://wiki.debian.org/Hardening/PIEByDefaultTransition

Relevant part (hopefully):
...
g++  -g -O2 -Wl,-z,relro -Wl,-z,now    -o priority_queue_unit_test
tests/priority_queue_unit_test-prio
rity_queue_unit_test.o tests/lib/priority_queue_unit_test-unit_test.o
grub-core/kern/priority_queue_un
it_test-list.o grub-core/kern/priority_queue_unit_test-misc.o
grub-core/tests/lib/priority_queue_unit_
test-test.o grub-core/lib/priority_queue_unit_test-priority_queue.o
libgrubmods.a libgrubgcry.a libgr
ubkern.a grub-core/gnulib/libgnu.a -ldevmapper
/usr/bin/ld: grub-core/kern/priority_queue_unit_test-misc.o: relocation
R_X86_64_32 against `.rodata.str1.1' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: grub-core/tests/lib/priority_queue_unit_test-test.o:
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
making a shared object; recompile with -fPIC
/usr/bin/ld: libgrubkern.a(libgrubkern_a-misc.o): relocation R_X86_64_32
against `.rodata.str1.1' can not be used when making a shared object;
recompile with -fPIC
...

The full build log is available from:
 https://people.debian.org/~rbalint/build-logs/pie-bindnow-20160906/grub2_2.02~beta2-36_amd64.build.gz

Thanks,
Balint



More information about the Pkg-grub-devel mailing list