qemu-e2k/pc-bios/optionrom
Christian Ehrhardt bbd2d5a812 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>
2020-12-15 12:53:16 -05:00
..
Makefile build: -no-pie is no functional linker flag 2020-12-15 12:53:16 -05:00
code16gcc.h Add optionrom compatible with fw_cfg DMA version 2016-07-14 15:50:52 +02:00
flat.lds optionrom: fix compilation with mingw docker target 2016-08-09 22:57:36 +02:00
kvmvapic.S
linuxboot.S linuxboot: fix loading old kernels 2014-12-15 12:21:03 +01:00
linuxboot_dma.c linuxboot_dma: move common functions in a new header 2019-02-05 16:50:17 +01:00
multiboot.S multiboot: Calculate upper_mem in the ROM 2013-06-28 14:01:52 -05:00
optionrom.h fw_cfg: import & use linux/qemu_fw_cfg.h 2018-08-23 18:46:25 +02:00
optrom.h linuxboot_dma: move common functions in a new header 2019-02-05 16:50:17 +01:00
optrom_fw_cfg.h linuxboot_dma: move common functions in a new header 2019-02-05 16:50:17 +01:00
pvh.S optionrom: add new PVH option rom 2019-02-05 16:50:17 +01:00
pvh_main.c optionrom/pvh: scan entire RSDP Area 2020-03-16 22:07:42 +01:00