m68k: handle default PIE

This commit is contained in:
Andreas Schwab 2017-05-28 23:55:46 +02:00
parent acf6d579e0
commit 542a34783c
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-05-29 Andreas Schwab <schwab@linux-m68k.org>
* sysdeps/m68k/Makefile (ASFLAGS-.o) [$(subdir) = csu &&
$(build-pie-default) = yes]: Define.
2017-05-25 H.J. Lu <hongjiu.lu@intel.com>
* string/test-memchr.c (test_main): Add tests for n == 0.

View File

@ -29,6 +29,10 @@ pic-ccflag = -fpic
ifeq ($(subdir),csu)
# Make sure gcrt1.o uses the large PIC model
CFLAGS-gmon-start.c := -fPIC
ifeq ($(build-pie-default),yes)
# Override default PIE
ASFLAGS-.o += -fno-pie
endif
endif
ifeq ($(subdir),setjmp)