Add app-container flag handling git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@5533 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-tools/genpeimg/src/genpeimg.c b/mingw-w64-tools/genpeimg/src/genpeimg.c index b3b0542..3db9b60 100644 --- a/mingw-w64-tools/genpeimg/src/genpeimg.c +++ b/mingw-w64-tools/genpeimg/src/genpeimg.c
@@ -29,13 +29,14 @@ " -d Takes as addition argument one or more of the following\n" " options:\n" " +<flags> and/or -<flags>\n" - " flags are: d, f, n, i, s, b, w, t\n" + " flags are: d, f, n, i, s, b, a, w, t\n" " d: dynamic base\n" " f: force integrity\n" " n: nx compatible\n" " i: no-isolation\n" " s: no-SEH\n" " b: no-bind\n" + " a: app-container\n" " w: WDM-driver\n" " t: terminal-server-aware\n"); fprintf (stderr, @@ -156,6 +157,10 @@ if (is_pos) set_pe_opt_hdr_dll_chara |= 0x800; else mask_pe_opt_hdr_dll_chara &= ~0x800; break; + case 'a': + if (is_pos) set_pe_opt_hdr_dll_chara |= 0x1000; + else mask_pe_opt_hdr_dll_chara &= ~0x1000; + break; case 'w': if (is_pos) set_pe_opt_hdr_dll_chara |= 0x2000; else mask_pe_opt_hdr_dll_chara &= ~0x2000;
diff --git a/mingw-w64-tools/genpeimg/src/img_pe.c b/mingw-w64-tools/genpeimg/src/img_pe.c index 32380eb..29cccc9 100644 --- a/mingw-w64-tools/genpeimg/src/img_pe.c +++ b/mingw-w64-tools/genpeimg/src/img_pe.c
@@ -284,6 +284,8 @@ fprintf (outfp, " no-SEH"); if ((hdr_cha & 0x800) != 0) fprintf (outfp, " no-BIND"); + if ((hdr_cha & 0x1000) != 0) + fprintf (outfp, " app-container"); if ((hdr_cha & 0x2000) != 0) fprintf (outfp, " wdm-Driver"); if ((hdr_cha & 0x8000) != 0)