]> xenbits.xensource.com Git - people/dariof/qemu-xen.git/commit
build: -no-pie is no functional linker flag master
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 14 Dec 2020 15:09:38 +0000 (16:09 +0100)
committerDario Faggioli <dfaggioli@suse.com>
Tue, 18 May 2021 08:44:18 +0000 (10:44 +0200)
commit85575b7b661cedb8e6f6e192d36199ca9fde5841
treef23e1b2756c56b6e28e85276c3596a8563e5cd40
parent7ea428895af2840d85c524f0bd11a38aac308308
build: -no-pie is no functional linker flag

Recent binutils changes dropping unsupported options [1] caused a build
issue in regard to the optionroms.

  ld -m elf_i386 -T /<<PKGBUILDDIR>>/pc-bios/optionrom//flat.lds -no-pie \
    -s -o multiboot.img multiboot.o
  ld.bfd: Error: unable to disambiguate: -no-pie (did you mean --no-pie ?)

This isn't really a regression in ld.bfd, filing the bug upstream
revealed that this never worked as a ld flag [2] - in fact it seems we
were by accident setting --nmagic).

Since it never had the wanted effect this usage of LDFLAGS_NOPIE, should be
droppable without any effect. This also is the only use-case of LDFLAGS_NOPIE
in .mak, therefore we can also remove it from being added there.

[1]: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=983d925d
[2]: https://sourceware.org/bugzilla/show_bug.cgi?id=27050#c5

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Message-Id: <20201214150938.1297512-1-christian.ehrhardt@canonical.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
configure
pc-bios/optionrom/Makefile