Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
elfldr: apply changes similar to a98ee6b
Browse files Browse the repository at this point in the history
  • Loading branch information
citronalco committed Sep 26, 2023
1 parent 15f47ab commit bda5f3c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion elfldr/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ EE_INCS := -I$(PS2SDK)/ee/include -I$(PS2SDK)/common/include -I.
EE_CFLAGS := -D_EE -O2 -mgpopt -G8192 -Wall $(EE_INCS)

EE_LDFLAGS = -nostartfiles -Tlinkfile -L$(PS2SDK)/ee/lib -s
EE_LIBS += -lkernel-nopatch
EE_LIBS += -lkernel

%.o : %.c
$(EE_CC) $(EE_CFLAGS) $(EE_INCS) -c $< -o $@
Expand Down
6 changes: 6 additions & 0 deletions elfldr/elfldr.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#define ELF_MAGIC 0x464c457f
#define ELF_PT_LOAD 1

// This function is defined as weak in ps2sdkc, so how
// we are not using time zone, so we can safe some KB
void _ps2sdk_timezone_update() {}

DISABLE_PATCHED_FUNCTIONS(); // Disable the patched functionalities
DISABLE_EXTRA_TIMERS_FUNCTIONS(); // Disable the extra functionalities for timers

//------------------------------
typedef struct
Expand Down

0 comments on commit bda5f3c

Please sign in to comment.