Skip to content

Commit 6fb3af3

Browse files
committed
makefile: add -fno-addrsig to the clang flags
1 parent 2433d6b commit 6fb3af3

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/crt/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include $(CURDIR)/../common.mk
1818

1919
BUILD_SRC := $(patsubst %,build/%.src,$(wildcard *.c *.cpp))
2020

21-
EZCFLAGS := -S -ffreestanding -Wall -Wextra -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Oz
21+
EZCFLAGS := -S -fno-addrsig -ffreestanding -Wall -Wextra -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Oz
2222
EZCFLAGS += -D_EZ80 -isystem ../libc/include -mllvm -profile-guided-section-prefix=false
2323
EZCXXFLAGS := $(EZCFLAGS) -fno-exceptions -fno-rtti
2424
EZCXXFLAGS += -isystem ../libc/include/c++

src/libc/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include $(CURDIR)/../common.mk
1818

1919
BUILD_SRC := $(patsubst %,build/%.src,$(wildcard *.c *.cpp))
2020

21-
EZCFLAGS := -S -ffreestanding -Wall -Wextra -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Oz
21+
EZCFLAGS := -S -fno-addrsig -ffreestanding -Wall -Wextra -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Oz
2222
EZCFLAGS += -D_EZ80 -isystem ../libc/include -isystem ../ce/include -isystem ../fileioc -mllvm -profile-guided-section-prefix=false
2323
EZCXXFLAGS := $(EZCFLAGS) -fno-exceptions -fno-rtti
2424
EZCXXFLAGS += -isystem ../libcxx/include

src/libcxx/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include $(CURDIR)/../common.mk
1818

1919
BUILD_SRC := $(patsubst %,build/%.src,$(wildcard *.c *.cpp))
2020

21-
EZCFLAGS := -S -ffreestanding -Wall -Wextra -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Oz
21+
EZCFLAGS := -S -fno-addrsig -ffreestanding -Wall -Wextra -Wimplicit-float-conversion -Wimplicit-int-float-conversion -Oz
2222
EZCFLAGS += -D_EZ80 -isystem ../libc/include -isystem ../ce/include -isystem ../fileioc -mllvm -profile-guided-section-prefix=false
2323
EZCXXFLAGS := $(EZCFLAGS) -fno-exceptions -fno-rtti
2424
EZCXXFLAGS += -isystem ../libcxx/include

src/makefile.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ LDHAS_PRINTF := 1
250250
endif
251251

252252
# define the c/c++ flags used by clang
253-
EZLLVMFLAGS = -mllvm -profile-guided-section-prefix=false
254-
EZCOMMONFLAGS = -nostdinc -isystem $(call NATIVEPATH,$(CEDEV_TOOLCHAIN)/include) -I$(SRCDIR) -fno-threadsafe-statics -Xclang -fforce-mangle-main-argc-argv $(EZLLVMFLAGS) -D__TICE__ -D$(DEBUGMODE) $(DEFCUSTOMFILE) $(CCDEBUG)
253+
EZLLVMFLAGS = -mllvm -profile-guided-section-prefix=false -fno-addrsig
254+
EZCOMMONFLAGS = -nostdinc -isystem $(call NATIVEPATH,$(CEDEV_TOOLCHAIN)/include) -I$(SRCDIR) -fno-addrsig -fno-threadsafe-statics -Xclang -fforce-mangle-main-argc-argv $(EZLLVMFLAGS) -D__TICE__ -D$(DEBUGMODE) $(DEFCUSTOMFILE) $(CCDEBUG)
255255
EZCFLAGS = $(EZCOMMONFLAGS) $(CFLAGS)
256256
EZCXXFLAGS = $(EZCOMMONFLAGS) -isystem $(call NATIVEPATH,$(CEDEV_TOOLCHAIN)/include/c++) -fno-exceptions -fno-use-cxa-atexit $(CXXFLAGS)
257257
EZLTOFLAGS = $(EZLLVMFLAGS) $(LTOFLAGS)

0 commit comments

Comments
 (0)