On Thu, 2007-03-08 at 12:38 -0500, Steven Rostedt wrote:
> +lg-objs := core.o hypervisor.o lguest_user.o hv_vm.o page_tables.o \
> +hypercalls.o io.o interrupts_and_traps.o lguest_debug.o

Right, I missed the trick here: hypervisor.S doesn't require any
relocations, so that fact that it's linked at the wrong address doesn't
matter at all.  Excuse me while I prepare a patch 8)

> +extern long end_hyper_text;
> +extern long start_hyper_text;

The standard way of doing this is "extern char end_hyper_text[];"
doesn't matter on x86/x86-64, but on some platforms gcc can make
assumptions about addresses based on the size of the variable (sbss
etc).  So nice to use that everywhere for asm constants.

Cheers,
Rusty.

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/virtualization

Reply via email to