From bfd5032fecd9704514c27f4021c8e084df188710 Mon Sep 17 00:00:00 2001 From: midipix Date: Jan 10 2019 03:43:15 +0000 Subject: project: added libc.so's linking flags. --- diff --git a/project/extras.mk b/project/extras.mk index 80ac425..e77efac 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,2 +1,18 @@ ./src/internal/version.o: build/version.h ./src/internal/version.lo: build/version.h + +# libc.so +SHARED_OBJS += $(LDSO_OBJS) + +LDFLAGS_COMMON += -nostdlib +LDFLAGS_COMMON += -Wl,-Bsymbolic-functions +LDFLAGS_COMMON += -Wl,--sort-common +LDFLAGS_COMMON += -Wl,--gc-sections +LDFLAGS_COMMON += -Wl,--no-undefined +LDFLAGS_COMMON += -Wl,--exclude-libs=ALL + +LDFLAGS_COMMON += -Wl,-e -Wl,_dlstart +LDFLAGS_COMMON += -Wl,--hash-style -Wl,both +LDFLAGS_COMMON += -Wl,--sort-section -Wl,alignment + +SHARED_LIB_DEPS += -lgcc -lgcc_eh