mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:24:17 +01:00
Set linker page size to reduce padding.
Previously every PHDR had align(0x1000) creating huge amounts of padding. Changing page size to 64 changes PHDR align to 0x40, reducing elf size.
This commit is contained in:
parent
dcee7f253f
commit
e46445c3ec
@ -1,7 +1,7 @@
|
||||
LIBPATHS := -L$(WUT_ROOT)/lib
|
||||
CFLAGS := -I$(WUT_ROOT)/include -fno-builtin -ffreestanding
|
||||
CXXFLAGS := $(CFLAGS)
|
||||
LDFLAGS := -nostdlib -nostartfiles $(WUT_ROOT)/lib/crt0.o -T $(WUT_ROOT)/rules/rpl.ld -pie -fPIE
|
||||
LDFLAGS := -nostdlib -nostartfiles $(WUT_ROOT)/lib/crt0.o -T $(WUT_ROOT)/rules/rpl.ld -pie -fPIE -z common-page-size=64 -z max-page-size=64
|
||||
|
||||
include $(WUT_ROOT)/rules/base.mk
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user