cosmetics

This commit is contained in:
John Törnblom committed 2024-11-24 01:34:21 +01:00
1 parent e510b15008
commit 87dd05133f
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -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
+3 -4
View File
@@ -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);
}
+1
View File
@@ -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)