mirror of
https://github.com/ps5-payload-dev/sdk.git
synced 2026-10-21 19:03:03 -05:00
cosmetics
This commit is contained in:
1 parent
e510b15008
commit
87dd05133f
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ CFLAGS += -ffreestanding -fno-builtin -nostdlib -fPIC
|
||||
CFLAGS += -target x86_64-sie-ps5 -fno-plt -fno-stack-protector
|
||||
CFLAGS += -fvisibility-nodllstorageclass=default -Wall -Werror
|
||||
CFLAGS += -fms-extensions -Wno-microsoft-anon-tag
|
||||
CFLAGS += -g
|
||||
CFLAGS += -O1
|
||||
|
||||
OBJ := crt.o syscall.o klog.o nid.o kernel.o rtld.o rtld_so.o rtld_sprx.o \
|
||||
rtld_payload.o patch.o mdbg.o
|
||||
|
||||
@@ -111,7 +111,7 @@ terminate(payload_args_t *args) {
|
||||
/**
|
||||
* Entry-point invoked by the ELF loader.
|
||||
**/
|
||||
void
|
||||
int
|
||||
_start(payload_args_t *args) {
|
||||
char** (*getargv)(void) = 0;
|
||||
int (*getargc)(void) = 0;
|
||||
@@ -127,8 +127,7 @@ _start(payload_args_t *args) {
|
||||
|
||||
// Init runtime.
|
||||
if((*args->payloadout=pre_init(args))) {
|
||||
terminate(args);
|
||||
return;
|
||||
return terminate(args);
|
||||
}
|
||||
|
||||
// Obtain argc, argv and envp from libkernel.
|
||||
@@ -154,5 +153,5 @@ _start(payload_args_t *args) {
|
||||
__fini_array_start[count-i-1]();
|
||||
}
|
||||
|
||||
terminate(args);
|
||||
return terminate(args);
|
||||
}
|
||||
@@ -33,6 +33,7 @@ endif
|
||||
CFLAGS := -target x86_64-sie-ps5 -fPIC -fno-plt -fno-stack-protector
|
||||
CFLAGS += -nobuiltininc -isystem ../include/freebsd
|
||||
CFLAGS += -fvisibility-nodllstorageclass=default
|
||||
CFLAGS += -O1
|
||||
|
||||
SRCS := $(wildcard *.c)
|
||||
OBJS := $(SRCS:.c=.o)
|
||||
|
||||
Reference in new issue
Block a user