]> xenbits.xensource.com Git - qemu-xen.git/commit
build: -no-pie is no functional linker flag qemu-xen-4.15.1 qemu-xen-4.15.2
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 14 Dec 2020 15:09:38 +0000 (16:09 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Wed, 7 Apr 2021 15:38:52 +0000 (16:38 +0100)
commite2af2d050338c99e8436e251ad67aafb3ebbd501
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>
(cherry picked from commit bbd2d5a8120771ec59b86a80a1f51884e0a26e53)
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
configure
pc-bios/optionrom/Makefile