aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/include/dlfcn.h
diff options
context:
space:
mode:
authorspicyjpeg <thatspicyjpeg@gmail.com>2022-12-18 16:30:02 +0100
committerGitHub <noreply@github.com>2022-12-18 16:30:02 +0100
commitb12b716a9e54c4f1892795a136d6ffeb088ff001 (patch)
tree5888e4a77b207f24ccd9ad148d1c74e9c33400e9 /libpsn00b/include/dlfcn.h
parent77306e187ef1a7ad5d3508ae9acb38edc5b68255 (diff)
parenta3359c0e7d85bf4752cda3b00892ecd5ef691077 (diff)
downloadpsn00bsdk-b12b716a9e54c4f1892795a136d6ffeb088ff001.tar.gz
Merge pull request #68 from spicyjpeg/bugfix
Bugfixes, psxcd rewrite, psxgpu and CMake tweaks (v0.22)
Diffstat (limited to 'libpsn00b/include/dlfcn.h')
-rw-r--r--libpsn00b/include/dlfcn.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/libpsn00b/include/dlfcn.h b/libpsn00b/include/dlfcn.h
index 3c5260d..6192430 100644
--- a/libpsn00b/include/dlfcn.h
+++ b/libpsn00b/include/dlfcn.h
@@ -24,7 +24,7 @@
* GCC will generate code to set $t9 appropriately.
*/
#define DL_PRE_CALL(func) \
- __asm__ volatile("move $t9, %0;" :: "r"(func) : "$t9");
+ __asm__ volatile("move $t9, %0;" :: "r"(func) : "$t9")
/* Structure and enum definitions */
@@ -37,15 +37,14 @@ typedef enum _DL_ResolveMode {
// Members of this struct should not be accessed directly in most cases, but
// they are intentionally exposed for easier expandability.
typedef struct _DLL {
- void *ptr;
- void *malloc_ptr;
+ void *ptr, *malloc_ptr;
size_t size;
const uint32_t *hash;
uint32_t *got;
Elf32_Sym *symtab;
const char *strtab;
- uint16_t symbol_count;
- uint16_t got_length;
+ uint16_t symbol_count, first_got_symbol;
+ uint16_t got_local_count, got_extern_count;
} DLL;
/* Public API */