From 8a9ea3ccc58fd36bfee657e10e0ea225729192b2 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 27 Apr 2016 12:08:38 +0200 Subject: m68k: use large PIC model for gcrt1.o --- ChangeLog | 2 ++ sysdeps/m68k/Makefile | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 943556f..52c5811 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2016-04-30 Andreas Schwab + * sysdeps/m68k/Makefile (CFLAGS-gmon-start.c): Define. + * sysdeps/unix/sysv/linux/m68k/clone.S: Localize labels. 2016-04-29 Stephen Gallagher diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 37a2f2d..22a961c 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -26,6 +26,11 @@ asm-CPPFLAGS += $(m68k-syntax-flag) pic-ccflag = -fpic +ifeq ($(subdir),csu) +# Make sure gcrt1.o uses the large PIC model +CFLAGS-gmon-start.c := -fPIC +endif + ifeq ($(subdir),setjmp) # Make sure setjmp.c is compiled with a frame pointer CFLAGS-setjmp.c := -fno-omit-frame-pointer -- cgit v1.1