From 542a34783ce1cfc63929ec50ab1f9f738711b815 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 28 May 2017 23:55:46 +0200 Subject: m68k: handle default PIE --- ChangeLog | 5 +++++ sysdeps/m68k/Makefile | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 99efccf6a0..93f0088ace 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-05-29 Andreas Schwab + + * sysdeps/m68k/Makefile (ASFLAGS-.o) [$(subdir) = csu && + $(build-pie-default) = yes]: Define. + 2017-05-25 H.J. Lu * string/test-memchr.c (test_main): Add tests for n == 0. diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 5a887bba70..26539fa01d 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -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) -- cgit v1.2.3