Skip to content

Commit d98070a

Browse files
committed
ld.so: Link for 4K pages
1 parent d051aa4 commit d98070a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ $(BASE)/lib/libkuroko.so: $(KRK_SRC) | $(LC)
111111
$(CC) -O2 -shared -fPIC -Ikuroko/src -o $@ $(filter-out kuroko/src/kuroko.c,$(KRK_SRC))
112112

113113
$(BASE)/lib/ld.so: linker/linker.c $(BASE)/lib/libc.a | dirs $(LC)
114-
$(CC) -g -static -Wl,-static $(CFLAGS) -o $@ -Os -T linker/link.ld $<
114+
$(CC) -g -static -Wl,-static $(CFLAGS) -z max-page-size=0x1000 -o $@ -Os -T linker/link.ld $<
115115

116116
run: system
117117
${EMU} ${EMU_ARGS} -cdrom image.iso

0 commit comments

Comments
 (0)