winegcc: Set page alignment to 4096 in all cases.
This avoids leaving holes in builtin dll mappings. Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
3f97ba3f46
commit
395a94d308
|
@ -1136,13 +1136,13 @@ static void build(struct options* opts)
|
|||
default:
|
||||
if (opts->image_base)
|
||||
{
|
||||
if (!try_link(opts->prefix, link_args, "-Wl,-z,max-page-size=0x1000"))
|
||||
strarray_add(link_args, "-Wl,-z,max-page-size=0x1000");
|
||||
if (!try_link(opts->prefix, link_args, strmake("-Wl,-Ttext-segment=%s", opts->image_base)))
|
||||
strarray_add(link_args, strmake("-Wl,-Ttext-segment=%s", opts->image_base));
|
||||
else
|
||||
prelink = PRELINK;
|
||||
}
|
||||
if (!try_link(opts->prefix, link_args, "-Wl,-z,max-page-size=0x1000"))
|
||||
strarray_add(link_args, "-Wl,-z,max-page-size=0x1000");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue