mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-31 04:37:25 +00:00
Create specific modinfo library
This commit is contained in:
14
src/modinfo/Makefile.am
Normal file
14
src/modinfo/Makefile.am
Normal file
@@ -0,0 +1,14 @@
|
||||
libdir := @PSPSDK_LIBDIR@
|
||||
|
||||
CC = @PSP_CC@
|
||||
CCAS = $(CC)
|
||||
AR = @PSP_AR@
|
||||
RANLIB = @PSP_RANLIB@
|
||||
|
||||
CPPFLAGS =
|
||||
CFLAGS = @PSPSDK_CFLAGS@
|
||||
CCASFLAGS = $(CFLAGS)
|
||||
|
||||
lib_LIBRARIES = libpspmodinfo.a
|
||||
libpspmodinfo_a_SOURCES = \
|
||||
modinfo.S
|
||||
26
src/modinfo/modinfo.S
Normal file
26
src/modinfo/modinfo.S
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
.global __lib_ent_top
|
||||
.global __lib_ent_bottom
|
||||
.global __lib_stub_top
|
||||
.global __lib_stub_bottom
|
||||
|
||||
.set push
|
||||
.section .lib.ent.top, "a", @progbits
|
||||
.align 2
|
||||
.word 0
|
||||
__lib_ent_top:
|
||||
.section .lib.ent.btm, "a", @progbits
|
||||
.align 2
|
||||
__lib_ent_bottom:
|
||||
.word 0
|
||||
.section .lib.stub.top, "a", @progbits
|
||||
.align 2
|
||||
.word 0
|
||||
__lib_stub_top:
|
||||
.section .lib.stub.btm, "a", @progbits
|
||||
.align 2
|
||||
__lib_stub_bottom:
|
||||
.word 0
|
||||
.set pop
|
||||
.text
|
||||
|
||||
Reference in New Issue
Block a user