On 21 June 2013 22:10, Richard Henderson <r...@twiddle.net> wrote: > For bsd-user and linux-user emulation modes QEMU needs to be linked at an > alternate .text segment address, so that it's out of the way of the guest > executable. Instead of including modified linker scripts for each arch, > just set the address with -Ttext-segment if supported, or by using sed to > edit the default linker script. > > Cc: Ed Maste <ema...@freebsd.org> > Signed-off-by: Richard Henderson <r...@twiddle.net> > --- > configure | 48 +++++++++++++++++++++++++++++++----------------- > 2 files changed, 31 insertions(+), 18 deletions(-) > -- > > Changes v2-v3: > * Move the check for textseg_ldflags much earlier in the configure file, > so that we've not got cflags invalid for configure time. Plus, the > check (and generated ld script) only gets done once, not once per > target directory. > * Remove ia64 from the hosts that get relocation > * Handle s390x like s390.
Thanks for cleaning this up. Tested on x86_64 FreeBSD with base system (old) binutils. Acked-by: Ed Maste <ema...@freebsd.org> Or if you prefer, for my contribution to this version, Signed-off-by: Ed Maste <ema...@freebsd.org>