Skip to content

Commit

Permalink
[ANDROID] Remove PreInit Array Warning and Fixed libc name when calle…
Browse files Browse the repository at this point in the history
…d by libdl
  • Loading branch information
KreitinnSoftware committed Sep 30, 2023
1 parent 4272703 commit b59726f
Show file tree
Hide file tree
Showing 8 changed files with 106 additions and 40 deletions.
4 changes: 2 additions & 2 deletions src/elfs/elfparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,11 @@ elfheader_t* ParseElfHeader(FILE* f, const char* name, int exec)
printf_dump(LOG_DEBUG, "The DT_INIT_ARRAYSZ is %d\n", h->initarray_sz);
break;
case DT_PREINIT_ARRAYSZ:
#ifndef ANDROID
#ifdef ANDROID
if(val)
printf_dump(LOG_NONE, "Warning, PreInit Array (size=%d) present and ignored!\n", val);
break;
#endif
break;
case DT_FINI: // Exit hook
h->finientry = ptr;
printf_dump(LOG_DEBUG, "The DT_FINI is at address %p\n", (void*)h->finientry);
Expand Down
69 changes: 67 additions & 2 deletions src/wrapped/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@
#() lFll
#() lFpi
#() lFpp
#() LFii
#() LFuu
#() LFLi
#() LFpi
Expand Down Expand Up @@ -414,7 +415,6 @@
#() iFiII
#() iFiuu
#() iFiup
#() iFiLi
#() iFiLN
#() iFipi
#() iFipu
Expand Down Expand Up @@ -545,6 +545,7 @@
#() lFppi
#() lFppL
#() lFSpl
#() LFiii
#() LFLLl
#() LFLpu
#() LFLpL
Expand Down Expand Up @@ -627,6 +628,8 @@
#() vFEiip
#() vFEipp
#() vFEipV
#() vFEpii
#() vFEpiL
#() vFEpip
#() vFEpuu
#() vFEpup
Expand Down Expand Up @@ -725,6 +728,7 @@
#() vFpiUU
#() vFpifi
#() vFpipi
#() vFpipu
#() vFpipp
#() vFpipG
#() vFpIdi
Expand Down Expand Up @@ -913,6 +917,7 @@
#() uFEipp
#() uFEupp
#() uFEpup
#() uFEppu
#() uFEppp
#() uFifff
#() uFippu
Expand Down Expand Up @@ -1033,6 +1038,7 @@
#() pFpppV
#() pFSppi
#() vFEippp
#() vFEpipu
#() vFEpuup
#() vFEpupp
#() vFEpLLp
Expand Down Expand Up @@ -1387,6 +1393,7 @@
#() pFppiup
#() pFppipi
#() pFppipp
#() pFppuui
#() pFppuuu
#() pFppuup
#() pFppddi
Expand Down Expand Up @@ -1482,6 +1489,7 @@
#() vFpiippi
#() vFpiippp
#() vFpiUuup
#() vFpipiiu
#() vFpipipV
#() vFpipppi
#() vFpipppp
Expand Down Expand Up @@ -1604,6 +1612,7 @@
#() iFppdidd
#() iFppLupp
#() iFppLpLp
#() iFppLppp
#() iFpppiuu
#() iFpppipi
#() iFpppipp
Expand Down Expand Up @@ -1664,6 +1673,7 @@
#() pFdddddd
#() pFpiiiiu
#() pFpiiCCC
#() pFpiiuuu
#() pFpiUUUU
#() pFpippip
#() pFpuuuuu
Expand Down Expand Up @@ -2165,6 +2175,7 @@
#() iFpippddiidd
#() iFpuupiuiipp
#() iFpddpippppp
#() iFppipiippii
#() iFppuuiiiiii
#() iFppuuiiuupi
#() iFpppLLipppp
Expand Down Expand Up @@ -2372,7 +2383,6 @@
#!defined(NOALIGN) iFEivpV -> iFEipV
wrappedalure:
wrappedalut:
wrappedandroidshmem:
wrappedappindicator:
wrappedappindicator3:
wrappedatk:
Expand Down Expand Up @@ -3296,6 +3306,60 @@ wrappedlibibus:
- vFppppippp:
- ibus_config_set_value_async
wrappedlibice:
wrappedlibjpeg:
- iFv:
- jpeg_simd_cpu_support
- iFp:
- jpeg_finish_decompress
- jpeg_start_decompress
- pFp:
- jpeg_std_error
- vFpp:
- jpeg_stdio_dest
- jpeg_stdio_src
- iFpi:
- jpeg_read_header
- vFpiL:
- jpeg_CreateDecompress
- vFpip:
- jpeg_set_marker_processor
- uFppu:
- jpeg_read_scanlines
wrappedlibjpeg62:
- vFp:
- jpeg_destroy_compress
- jpeg_destroy_decompress
- jpeg_finish_compress
- jpeg_set_defaults
- iFv:
- jpeg_simd_cpu_support
- iFp:
- jpeg_finish_decompress
- jpeg_start_decompress
- pFp:
- jpeg_std_error
- vFpi:
- jpeg_start_compress
- vFpp:
- jpeg_stdio_dest
- jpeg_stdio_src
- iFpi:
- jpeg_read_header
- jpeg_resync_to_restart
- vFpii:
- jpeg_set_quality
- vFpiL:
- jpeg_CreateCompress
- jpeg_CreateDecompress
- vFpip:
- jpeg_set_marker_processor
- vFppp:
- jpeg_mem_dest
- uFppu:
- jpeg_read_scanlines
- jpeg_write_scanlines
- vFpipu:
- jpeg_write_marker
wrappedlibm:
- UFs:
- cacosf
Expand Down Expand Up @@ -4521,6 +4585,7 @@ wrappedtcmallocminimal:
- mmap
- pFpLiiiI:
- mmap64
wrappedturbojpeg:
wrappedudev0:
wrappedudev1:
- vFpp:
Expand Down
8 changes: 0 additions & 8 deletions src/wrapped/generated/wrappedandroidshmemdefs.h

This file was deleted.

17 changes: 0 additions & 17 deletions src/wrapped/generated/wrappedandroidshmemtypes.h

This file was deleted.

8 changes: 0 additions & 8 deletions src/wrapped/generated/wrappedandroidshmemundefs.h

This file was deleted.

Loading

0 comments on commit b59726f

Please sign in to comment.