|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] xen/efi: Avoid EFI stub using absolute symbols
Hi Jan, On 12/01/18 13:13, Jan Beulich wrote: On 09.01.18 at 20:43, <julien.grall@xxxxxxxxxx> wrote:When I compiled the snippet on x86 and Arm, no relocation is available for the pointers to string in the array in the final binary. Yet they are available in the object.I can see them there in the binary I look at. I use my own tool for dumping, so the output may look unfamiliar to you, but here are the relevant pieces: I am a bit confused. Which binary are you looking at? Is it xen.efi? I don't seem to find them in xen-syms.
If the code compiled is position independent, then you should not need relocation. Right? So what are you trying to achieve with mkreloc?Also, it does not explain why the compiler is issuing absolute address when building with -fpie. So I am wondering how this work on x86? Note that this code is only used in error path.Sure, but an error path is being taken every now and then, and I personally have seen errors coming back (mostly after having made mistakes elsewhere). And I guess the binary will never be loaded at the same as virtual address as Xen would be meant to run? Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |