Skip to content

Commit e36283f

Browse files
committed
Support double parameters in dlsym() imports
1 parent 4772796 commit e36283f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

libc/dlopen/dlopen.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,17 @@ static int is_file_newer_than(const char *path, const char *other) {
160160
// todo(jart): add tls trampoline to sigaction() handlers
161161
// todo(jart): morph binary to get tls from host c library
162162
static long foreign_tramp(long a, long b, long c, long d, long e,
163-
long func(long, long, long, long, long)) {
163+
long func(long, long, long, long, long, double,
164+
double, double, double, double, double),
165+
double A, double B, double C, double D, double E,
166+
double F) {
164167
long res;
165168
BLOCK_SIGNALS;
166169
#ifdef __x86_64__
167170
struct CosmoTib *tib = __get_tls();
168171
__set_tls(foreign.tib);
169172
#endif
170-
res = func(a, b, c, d, e);
173+
res = func(a, b, c, d, e, A, B, C, D, E, F);
171174
#ifdef __x86_64__
172175
__set_tls(tib);
173176
#endif

0 commit comments

Comments
 (0)