From 0486939291bfe4406f688ffc8a62b4da2c7a95cf Mon Sep 17 00:00:00 2001 From: "Pavlas, Zdenek" Date: Mon, 12 Dec 2016 06:52:45 -0800 Subject: win32: support "-Wl,--large-address-aware" option --- libtcc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 270e986..11a7cf6 100644 --- a/libtcc.c +++ b/libtcc.c @@ -1370,6 +1370,8 @@ static int tcc_set_linker(TCCState *s, const char *option) } else if (link_option(option, "soname=", &p)) { s->soname = copy_linker_arg(p); #ifdef TCC_TARGET_PE + } else if (link_option(option, "large-address-aware", &p)) { + s->pe_characteristics |= 0x20; } else if (link_option(option, "file-alignment=", &p)) { s->pe_file_align = strtoul(p, &end, 16); } else if (link_option(option, "stack=", &p)) { -- cgit v1.3.1