]> xenbits.xensource.com Git - xen.git/commit
rombios: prevent building with PIC/PIE
authorOlaf Hering <olaf@aepfle.de>
Mon, 26 Jun 2017 12:55:07 +0000 (14:55 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 26 Jun 2017 13:32:46 +0000 (14:32 +0100)
commit672949d6c61d9cba01c5b414eed9d522082f04d3
tree27a6a87816c24b96551c3f81f5f609e10c7f4861
parent5bba2b362f7ecde1a1a034c0bb0cc882577d8bce
rombios: prevent building with PIC/PIE

If the default compiler silently defaults to to -fPIC/-fPIE building
rombios fails:

 ld -melf_i386 -s -r 32bitbios.o tcgbios/tcgbiosext.o util.o pmm.o -o 32bitbios_all.o
 There are undefined symbols in the BIOS:
          U _GLOBAL_OFFSET_TABLE_
 make[10]: *** [Makefile:26: 32bitbios_all.o] Error 11

Prevent the failure by enforcing non-PIC/PIE mode.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/firmware/rombios/32bit/Makefile
tools/firmware/rombios/32bit/tcgbios/Makefile