Generates shared library which executable header has an invalid e_shoff
This change will generate a shared library which executable header
has an invalid section header offset.
Bug: 347728628
Test: $ m geninvalelf64
$ adb push out/target/product/vsoc_x86_64_pgagnostic/system/bin/geninvalelf64 /data
$ vsoc_x86_64_pgagnostic:/data # /data/geninvalelf64 ./test_x86_64/libtest_empty.so ./test_x86_64
Writing ELF64 binary to file ./test_x86_64/libtest_invalid-unaligned_shdr_offset.so
$ readelf -h x86_64/libtest_invalid-unaligned_shdr_offset.so
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x0
Start of program headers: 64 (bytes into file)
Start of section headers: 3217 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 9
Size of section headers: 64 (bytes)
Number of section headers: 22
Section header string table index: 20
readelf: Error: Reading 1408 bytes extends past end of file for section headers
Change-Id: Ic85d7981637c8f9c7c48a305dfafc9eb5ce4199c
diff --git a/system/memory/libmeminfo b/system/memory/libmeminfo
index 8519c28..89d42bb 160000
--- a/system/memory/libmeminfo
+++ b/system/memory/libmeminfo
@@ -1 +1 @@
-Subproject commit 8519c28c230fd91fa554fa2bc9f85f7ccf0eb882
+Subproject commit 89d42bb54207d4ca85eb9ffb662cfbce60cb46b4