-----------------------------------------------------------------

[*] Initial strace run with jchroot on the command ./sbin/validate_data to identify missing areas

[*] Emulating binary name: validate_data in strace mode to identify missing areas (with jchroot)
[*] Emulator used: qemu-mipsel-static
[*] Chroot environment used: jchroot
[*] Using root directory: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract (1/1)
[*] Using CPU config: 

1 brk(NULL) = 0x00412060
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3ffc8000
1 uname(0x4071e6e0) = 0
1 access("/etc/ld.so.preload",R_OK) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/etc/ld.so.cache",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/tls/librt.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e464,512) = 512
1 prctl(46,10,1081205860,512,1073770496,0) = 0
1 _llseek(3,0,704,0x4071e220,SEEK_SET) = 0
1 read(3,0x4071e250,32) = 32
1 fstat64(3,0x4071e328) = 0
1 mmap2(NULL,94912,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ffb0000
1 mprotect(0x3ffb7000,61440,PROT_NONE) = 0
1 mmap2(0x3ffc6000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3ffc6000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libubox.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e44c,512) = 512
1 prctl(46,8,1081205836,512,1073770496,0) = 0
1 fstat64(3,0x4071e310) = 0
1 mmap2(NULL,99696,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff97000
1 mprotect(0x3ff9f000,61440,PROT_NONE) = 0
1 mmap2(0x3ffae000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x7) = 0x3ffae000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libuci.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e434,512) = 512
1 prctl(46,8,1081205812,512,1073770496,0) = 0
1 fstat64(3,0x4071e2f8) = 0
1 mmap2(NULL,94880,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff7f000
1 mprotect(0x3ff86000,61440,PROT_NONE) = 0
1 mmap2(0x3ff95000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x6) = 0x3ff95000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libvalidate.so",O_RDONLY|O_CLOEXEC) = -1 errno=2 (No such file or directory)
1 openat(AT_FDCWD,"/lib/libvalidate.so",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e41c,512) = 512
1 prctl(46,8,1081205788,512,1073770496,0) = 0
1 fstat64(3,0x4071e2e0) = 0
1 mmap2(NULL,78608,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff6b000
1 mprotect(0x3ff6e000,61440,PROT_NONE) = 0
1 mmap2(0x3ff7d000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x2) = 0x3ff7d000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libgcc_s.so.1",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e404,512) = 512
1 prctl(46,9,1081205764,512,1073770496,0) = 0
1 fstat64(3,0x4071e2c8) = 0
1 mmap2(NULL,144160,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3ff47000
1 mprotect(0x3ff5a000,61440,PROT_NONE) = 0
1 mmap2(0x3ff69000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x12) = 0x3ff69000
1 mprotect(0x4071e000,4096,PROT_EXEC|PROT_READ|PROT_WRITE|PROT_GROWSDOWN) = 0
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libc.so.6",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e3ec,512) = 512
1 prctl(46,13,1081205740,512,1073770496,0) = 0
1 _llseek(3,0,792,0x4071e1a8,SEEK_SET) = 0
1 read(3,0x4071e1d8,32) = 32
1 fstat64(3,0x4071e2b0) = 0
1 mmap2(NULL,1630336,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fdb8000
1 mprotect(0x3ff2e000,61440,PROT_NONE) = 0
1 mmap2(0x3ff3d000,28672,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x175) = 0x3ff3d000
1 mmap2(0x3ff44000,8320,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3ff44000
1 close(3) = 0
1 openat(AT_FDCWD,"/lib/tls/libpthread.so.0",O_RDONLY|O_CLOEXEC) = 3
1 read(3,0x4071e33c,512) = 512
1 prctl(46,12,1081205564,512,1073770496,0) = 0
1 _llseek(3,0,768,0x4071e0f0,SEEK_SET) = 0
1 read(3,0x4071e120,32) = 32
1 fstat64(3,0x4071e200) = 0
1 mmap2(NULL,181232,PROT_EXEC|PROT_READ,MAP_PRIVATE|MAP_DENYWRITE,3,0) = 0x3fd8b000
1 mprotect(0x3fda5000,61440,PROT_NONE) = 0
1 mmap2(0x3fdb4000,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_DENYWRITE|MAP_FIXED,3,0x19) = 0x3fdb4000
1 mmap2(0x3fdb6000,5104,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS|MAP_FIXED,-1,0) = 0x3fdb6000
1 close(3) = 0
1 mmap2(NULL,8192,PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0) = 0x3fd89000
1 set_thread_area(0x3fd90d80) = 0
1 mprotect(0x3ff3d000,16384,PROT_READ) = 0
1 mprotect(0x3fdb4000,4096,PROT_READ) = 0
1 mprotect(0x3ff69000,4096,PROT_READ) = 0
1 mprotect(0x3ffc6000,4096,PROT_READ) = 0
1 mprotect(0x3ff7d000,4096,PROT_READ) = 0
1 mprotect(0x3ffae000,4096,PROT_READ) = 0
1 mprotect(0x3ff95000,4096,PROT_READ) = 0
1 mprotect(0x00411000,4096,PROT_READ) = 0
1 mprotect(0x3fffe000,4096,PROT_READ) = 0
1 set_tid_address(0x3fd89958) = 1
1 set_robust_list(0x3fd89960,12) = -1 errno=89 (Function not implemented)
1 rt_sigaction(32,0x4071ed28,NULL) = 0
1 rt_sigaction(33,0x4071ed28,NULL) = 0
1 rt_sigprocmask(SIG_UNBLOCK,0x4071ed70,NULL,16) = 0
1 getrlimit(3,0x4071edf8) = 0
1 write(2,0x4071c760,74)./sbin/validate_data <datatype> <value>	- validate a value against a type
 = 74
1 write(2,0x4071c760,117)./sbin/validate_data <package> <section_type> <section_name> 'option:datatype:default' 'option:datatype:default' ...
 = 117
1 exit_group(-1)

[*] Identification of missing filesytem areas.
[*] Found missing area: /etc/ld.so.cache
[*] Trying to identify this missing file: ld.so.cache
[*] Missing file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/etc/ld.so.cache
[*] Found missing area: /lib/tls/libvalidate.so
[*] Trying to identify this missing file: libvalidate.so
[*] Possible matching file found: /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libvalidate.so
[*] Copy file /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/libvalidate.so to /logs/s115_usermode_emulator/firmware/unblob_extracted/firmware_extract/1568982-13971496.squashfs_v4_le_extract/lib/tls/

-----------------------------------------------------------------