From 3fa2eb2aba8d6b54dec53e7ad4c37e17392b166f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 20 Jun 2014 00:25:12 -0400 Subject: rename dynamic linker entry point from _start to _dlstart the main motivation for this change is to aid in debugging. since the main program's entry point is also named _start, it was difficult to set breakpoints or quickly identify which _start execution stopped in. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0ab0bfdd..d5a64fce 100644 --- a/Makefile +++ b/Makefile @@ -125,7 +125,7 @@ $(foreach s,$(wildcard src/*/$(ARCH)*/*.s),$(eval $(call mkasmdep,$(s)))) lib/libc.so: $(LOBJS) $(CC) $(CFLAGS_ALL_SHARED) $(LDFLAGS) -nostdlib -shared \ - -Wl,-e,_start -Wl,-Bsymbolic-functions \ + -Wl,-e,_dlstart -Wl,-Bsymbolic-functions \ -o $@ $(LOBJS) $(LIBCC) lib/libc.a: $(OBJS) -- cgit 1.4.1