diff --git a/Clock/Makefile b/Clock/Makefile index 50865fd3a7..1123db515b 100644 --- a/Clock/Makefile +++ b/Clock/Makefile @@ -18,7 +18,7 @@ CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(F CXX = clang LD = ld AR = ar -LDFLAGS = -static --strip-debug -melf_i386 --build-id=none -z norelro -z now -e _start --gc-sections +LDFLAGS = -static --strip-debug -melf_i386 -e _start --gc-sections all: $(APP) diff --git a/FontEditor/Makefile b/FontEditor/Makefile index a515f09ddf..27d976d494 100644 --- a/FontEditor/Makefile +++ b/FontEditor/Makefile @@ -18,7 +18,7 @@ CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(F CXX = clang LD = ld AR = ar -LDFLAGS = -static --strip-debug -melf_i386 --build-id=none -z norelro -z now -e _start --gc-sections +LDFLAGS = -static --strip-debug -melf_i386 -e _start --gc-sections all: $(APP) diff --git a/Kernel/Makefile b/Kernel/Makefile index 8cd2888e35..6f7e858de8 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -91,7 +91,7 @@ DEFINES = -DSERENITY -DKERNEL -DSANITIZE_PTRS CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES) CXX = clang LD = ld -LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections --build-id=none -z norelro -z now +LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections all: $(KERNEL) $(IMAGE) kernel.map diff --git a/LibC/Makefile b/LibC/Makefile index 7704012171..fb07e474c6 100644 --- a/LibC/Makefile +++ b/LibC/Makefile @@ -54,7 +54,7 @@ STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings FLAVOR_FLAGS = -fomit-frame-pointer -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +OPTIMIZATION_FLAGS = -O2 -fno-asynchronous-unwind-tables INCLUDE_FLAGS = -I.. -I. DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS @@ -63,7 +63,7 @@ CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVO CXX = clang LD = ld AR = ar -LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections --build-id=none -z norelro -z now +LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections all: $(LIBRARY) diff --git a/LibGUI/Makefile b/LibGUI/Makefile index 22d6a0bd76..f90e7398f8 100644 --- a/LibGUI/Makefile +++ b/LibGUI/Makefile @@ -36,7 +36,7 @@ CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(LIBC_FLAGS) $(FLAVO CXX = clang LD = ld AR = ar -LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections --build-id=none -z norelro -z now +LDFLAGS = -T linker.ld --strip-debug -melf_i386 --gc-sections all: $(LIBRARY) diff --git a/Terminal/Makefile b/Terminal/Makefile index 8ccc36fc8e..c8c0faf712 100644 --- a/Terminal/Makefile +++ b/Terminal/Makefile @@ -18,7 +18,7 @@ CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(F CXX = clang LD = ld AR = ar -LDFLAGS = -static --strip-debug -melf_i386 --build-id=none -z norelro -z now -e _start --gc-sections +LDFLAGS = -static --strip-debug -melf_i386 -e _start --gc-sections all: $(APP) diff --git a/Userland/Makefile b/Userland/Makefile index 990a8b09b3..4893210c38 100644 --- a/Userland/Makefile +++ b/Userland/Makefile @@ -75,7 +75,7 @@ CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(USERLAND_FLAGS) $(F CXX = clang LD = ld AR = ar -LDFLAGS = -static --strip-debug -melf_i386 --build-id=none -z norelro -z now -e _start --gc-sections +LDFLAGS = -static --strip-debug -melf_i386 -e _start --gc-sections all: $(OBJS) $(APPS)