Michael Cronenworth mike@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.