21 Oct
2015
21 Oct
'15
2:17 a.m.
Michael Cronenworth <mike(a)cchtml.com> writes:
@@ -1167,8 +1173,9 @@ static void build(struct options* opts) spawn(opts->prefix, link_args, 0); strarray_free (link_args);
- /* set the base address */ - if (opts->image_base && !opts->target) + /* set the base address with prelink if linker support is not present */ + if (opts->image_base && !opts->target && + try_link(opts->prefix, link_args, strmake("-Wl,-Ttext-segment=%s", opts->image_base)))
It looks OK now, but please avoid calling try_link() twice for the same check. -- Alexandre Julliard julliard(a)winehq.org