--force-pie inhibits treating as shared library (for 'rust', etc.)

https://github.com/upx/upx/issues/200
	modified:   main.cpp
	modified:   options.h
	modified:   p_lx_elf.cpp
This commit is contained in:
John Reiser
2018-04-26 13:44:17 -07:00
parent 9f651ee40f
commit 614c86fb7d
3 changed files with 9 additions and 2 deletions
+4
View File
@@ -869,6 +869,9 @@ static int do_option(int optc, const char *arg)
case 676:
opt->o_unix.android_shlib = true;
break;
case 677:
opt->o_unix.force_pie = true;
break;
case '\0':
return -1;
@@ -1020,6 +1023,7 @@ static const struct mfx_option longopts[] =
{"unmap-all-pages", 0x10, 0, 674}, // linux /proc/self/exe vanishes
{"preserve-build-id", 0, 0, 675},
{"android-shlib", 0, 0, 676},
{"force-pie", 0, 0, 677},
// watcom/le
{"le", 0x10, 0, 620}, // produce LE output
// win32/pe