Skip to content

Commit

Permalink
vita: try to fix alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
notaz committed Dec 15, 2024
1 parent c50a184 commit a5aec87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,12 @@ target_: $(TARGET)

$(TARGET): $(OBJS)
ifeq ($(PARTIAL_LINKING), 1)
$(LD) -o $(basename $(TARGET))1.o -r --gc-sections $(addprefix -u , $(shell cat frontend/libretro-extern)) $^
$(OBJCOPY) --keep-global-symbols=frontend/libretro-extern $(basename $(TARGET))1.o $(basename $(TARGET)).o
$(LD) -o $(basename $(TARGET))1.o -r --gc-sections \
$(addprefix -u ,$(shell cat frontend/libretro-extern)) \
$(addprefix -u ,$(EXTRA_EXTERN_SYMS)) $^
$(OBJCOPY) --keep-global-symbols=frontend/libretro-extern \
$(addprefix -G ,$(EXTRA_EXTERN_SYMS)) \
$(basename $(TARGET))1.o $(basename $(TARGET)).o
$(AR) rcs $@ $(basename $(TARGET)).o
else ifeq ($(STATIC_LINKING), 1)
$(AR) rcs $@ $^
Expand Down
1 change: 1 addition & 0 deletions Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ else ifeq ($(platform), vita)
NO_MMAP := 1
NO_POSIX_MEMALIGN := 1
HAVE_PHYSICAL_CDROM = 0
EXTRA_EXTERN_SYMS += _newlib_vm_size_user

# CTR(3DS)
else ifeq ($(platform), ctr)
Expand Down

0 comments on commit a5aec87

Please sign in to comment.