mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-27 11:54:50 +08:00
[X86LIBS] Updated libstdc++ and libgcc_s
This commit is contained in:
parent
708986a3c6
commit
cf2e754447
@ -574,8 +574,10 @@ int RelocateElfREL(lib_t *maplib, lib_t *local_maplib, int bindnow, elfheader_t*
|
||||
end = globend;
|
||||
}
|
||||
if (!offs) {
|
||||
if(strcmp(symname, "__gmon_start__") && strcmp(symname, "data_start") && strcmp(symname, "__data_start"))
|
||||
printf_log(LOG_NONE, "Error: Global Symbol %s not found, cannot apply R_386_GLOB_DAT @%p (%p) in %s\n", symname, p, *(void**)p, head->name);
|
||||
if(strcmp(symname, "__gmon_start__") && strcmp(symname, "data_start") && strcmp(symname, "__data_start")) {
|
||||
printf_log((bind==STB_GLOBAL)?LOG_NONE:LOG_INFO, "%s: Global Symbol %s not found, cannot apply R_386_GLOB_DAT @%p (%p) in %s\n", (bind==STB_GLOBAL)?"Error":"Warning", symname, p, *(void**)p, head->name);
|
||||
if(bind==STB_GLOBAL) ret_ok=1;
|
||||
}
|
||||
} else {
|
||||
printf_dump(LOG_NEVER, "Apply %s R_386_GLOB_DAT @%p (%p -> %p) on sym=%s (ver=%d/%s)\n", (bind==STB_LOCAL)?"Local":((bind==STB_WEAK)?"Weak":"Global"), p, (void*)(p?(*p):0), (void*)offs, symname, version, vername?vername:"(none)");
|
||||
*p = offs/* + rela[i].r_addend*/; // not addend it seems
|
||||
|
@ -4614,7 +4614,6 @@ wrappedudev1:
|
||||
wrappedutil:
|
||||
- iFpppp:
|
||||
- forkpty
|
||||
wrappedandroidshmem:
|
||||
wrappedvorbisfile:
|
||||
- iFp:
|
||||
- ov_bitrate_instant
|
||||
|
@ -3309,6 +3309,9 @@ EXPORT char* my___progname_full = NULL;
|
||||
EXPORT char* my_program_invocation_name = NULL;
|
||||
EXPORT char* my_program_invocation_short_name = NULL;
|
||||
|
||||
// ignoring this for now
|
||||
EXPORT char my___libc_single_threaded = 0;
|
||||
|
||||
#define PRE_INIT\
|
||||
if(1) \
|
||||
my_lib = lib->w.lib = dlopen(NULL, RTLD_LAZY | RTLD_GLOBAL);\
|
||||
|
@ -2251,6 +2251,8 @@ GOM(fstatat64, iFippi) //%%,noE
|
||||
GOM(fstat64, iFip) //%%,noE
|
||||
GOM(fstatat, iFippi) //%%,noE
|
||||
|
||||
DATAM(__libc_single_threaded, 1)
|
||||
|
||||
GOWM(_Unwind_Find_FDE, pFEpp) // this is a libgcc_s function, I think. Create a dummy weak one, just in case
|
||||
GO(dummy__ZnwmSt11align_val_tRKSt9nothrow_t, pFLLp) // for mallochook.c
|
||||
GO(dummy_safer_scalable_aligned_realloc, pFpLLp) // for mallochook.c
|
||||
|
BIN
x86lib/libgcc_s.so.1
Executable file → Normal file
BIN
x86lib/libgcc_s.so.1
Executable file → Normal file
Binary file not shown.
BIN
x86lib/libstdc++.so.6
Executable file → Normal file
BIN
x86lib/libstdc++.so.6
Executable file → Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user