--android-shlib preserves selected Elf32_Shdr

32-bit only for now; also in wrong place for unpacking (-d)
	modified:   main.cpp
	modified:   options.h
	modified:   p_elf_enum.h
	modified:   p_lx_elf.cpp
	modified:   p_lx_elf.h
This commit is contained in:
John Reiser
2017-03-29 18:31:39 -07:00
parent 348173d3f1
commit 300d489408
5 changed files with 73 additions and 11 deletions
+4
View File
@@ -866,6 +866,9 @@ static int do_option(int optc, const char *arg)
case 675:
opt->o_unix.preserve_build_id = true;
break;
case 676:
opt->o_unix.android_shlib = true;
break;
case '\0':
return -1;
@@ -1016,6 +1019,7 @@ static const struct mfx_option longopts[] =
{"openbsd", 0x10, 0, 669},
{"unmap-all-pages", 0x10, 0, 674}, // linux /proc/self/exe vanishes
{"preserve-build-id", 0, 0, 675},
{"android-shlib", 0, 0, 676},
// watcom/le
{"le", 0x10, 0, 620}, // produce LE output
// win32/pe