coreboot/util
Paul Menzel 459d2198eb msrtool: Remove no-pic from CFLAGS
Commit 7c634ae8 (msrtool: added support for Intel CPUs) adds `no-pic` to
the compiler flags.

GCC 7.0.1 20170316 fails to built with the error below.

```
/usr/bin/ld: msrtool.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: msrutils.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: sys.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: linux.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: freebsd.o: relocation R_X86_64_32S against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
```

Removing the flag causes the build to succeed with GCC 7, 6.3, and clang
4.0.

Change-Id: I3d7aed27ce7f84aa27305c68e2d5f14607c58ec8
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: https://review.coreboot.org/18907
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Tauner <stefan.tauner@gmx.at>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
2017-06-09 16:32:54 +02:00
..
abuild abuild: Remove space before tab 2017-06-07 20:37:35 +02:00
acpi
amdfwtool
amdtools Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
archive
arm_boot_tools/mksunxiboot
autoport Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
bimgtool
blobtool
board_status Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
broadcom
cbfstool util/cbfstool/lz4frame.c: Add comment to fall through 2017-06-06 19:37:21 +02:00
cbmem
checklist
chromeos
crossgcc crossgcc: Resolve pointer and integer comparison in GCC 2017-06-08 23:29:15 +02:00
docker Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
dtd_parser
ectool
exynos
futility
fuzz-tests
genbuild_h
genprof
gitconfig
hugo
ifdfake
ifdtool
intelmetool Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
inteltool inteltool: Add Skylake PCI id in memory.c 2017-06-09 16:25:20 +02:00
intelvbttool
ipqheader
k8resdump
kbc1126
kconfig
lint util/lint: Give better warning for help spacing issue 2017-06-07 23:13:38 +02:00
marvell
me_cleaner
mma
msrtool msrtool: Remove no-pic from CFLAGS 2017-06-09 16:32:54 +02:00
mtkheader
nvidia
nvramtool Use www.coreboot.org over coreboot.org 2017-06-07 12:05:44 +02:00
optionlist Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
post
release
riscvtools
rockchip
romcc
sconfig
scripts
showdevicetree
spkmodem_recv
superiotool Use www.coreboot.org over coreboot.org 2017-06-07 12:05:44 +02:00
uio_usbdebug
vgabios
viatool Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
xcompile