From: Andy Shevchenko Date: Mon, 6 Aug 2018 16:00:22 +0000 (+0300) Subject: Makefile: Don't generate position independent code X-Git-Tag: v2018.09-rc3~35^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ace36e19a8cfdd16ce7c02625edf36864897bf5;hp=6ace36e19a8cfdd16ce7c02625edf36864897bf5;p=oweals%2Fu-boot.git Makefile: Don't generate position independent code Since gcc-8 the --enable-default-pie starts producing code which assembler can't translate in case of U-Boot. The build fails with {standard input}: Assembler messages: {standard input}:21100: Error: junk at end of line, first unrecognized character is `@' {standard input}:21120: Error: junk at end of line, first unrecognized character is `@' and so on. This is usually the case for x86 platform because in many cases it uses host compiler from the Linux distributions, where PIE is enabled by default. Previously (gcc-7 and earlier) that was a potential issue due to absence of constructions like .long end.5561@gotoff-start.5558@gotoff which are a cause of above error messages in gcc-8. Fix all these by disabling PIE on Makefile level. Reported-by: Heinrich Schuchardt Suggested-by: Mika Westerberg Signed-off-by: Andy Shevchenko Tested-by: Heinrich Schuchardt Tested-by: Bin Meng ---