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.
This commit is contained in:
parent
acb7e049b8
commit
3fa2eb2aba
9 changed files with 20 additions and 20 deletions
2
Makefile
2
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue