* [Mini-OS] -fpic? @ 2007-11-27 11:16 Samuel Thibault 2007-11-27 12:33 ` Keir Fraser 0 siblings, 1 reply; 5+ messages in thread From: Samuel Thibault @ 2007-11-27 11:16 UTC (permalink / raw) To: xen-devel Is there a reason for using -fpic when compiling mini-os? I'm asking because that actually causes linking troubles in my stubdomain work, and just dropping it works fine (and I don't see why we'd need it) Samuel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Mini-OS] -fpic? 2007-11-27 11:16 [Mini-OS] -fpic? Samuel Thibault @ 2007-11-27 12:33 ` Keir Fraser 2007-11-28 16:35 ` [Mini-OS] Drop useless -fpic flag Samuel Thibault 0 siblings, 1 reply; 5+ messages in thread From: Keir Fraser @ 2007-11-27 12:33 UTC (permalink / raw) To: Samuel Thibault, xen-devel If it builds without it then it should be fine, I believe. -- Keir On 27/11/07 11:16, "Samuel Thibault" <samuel.thibault@eu.citrix.com> wrote: > Is there a reason for using -fpic when compiling mini-os? > > I'm asking because that actually causes linking troubles in my > stubdomain work, and just dropping it works fine (and I don't see why > we'd need it) > > Samuel > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Mini-OS] Drop useless -fpic flag 2007-11-27 12:33 ` Keir Fraser @ 2007-11-28 16:35 ` Samuel Thibault 2007-11-28 16:42 ` Keir Fraser 0 siblings, 1 reply; 5+ messages in thread From: Samuel Thibault @ 2007-11-28 16:35 UTC (permalink / raw) To: Keir Fraser; +Cc: xen-devel Keir Fraser, le Tue 27 Nov 2007 12:33:23 +0000, a écrit : > If it builds without it then it should be fine, I believe. And nobody raised his hand, so here is a patch: Drop useless -fpic flag. Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com> diff -r c555a5f97982 extras/mini-os/arch/x86/arch.mk --- a/extras/mini-os/arch/x86/arch.mk Wed Nov 28 13:36:56 2007 +0000 +++ b/extras/mini-os/arch/x86/arch.mk Wed Nov 28 16:33:37 2007 +0000 @@ -17,7 +17,7 @@ endif endif ifeq ($(TARGET_ARCH),x86_64) -ARCH_CFLAGS := -m64 -mno-red-zone -fpic -fno-reorder-blocks +ARCH_CFLAGS := -m64 -mno-red-zone -fno-reorder-blocks ARCH_CFLAGS += -fno-asynchronous-unwind-tables ARCH_ASFLAGS := -m64 ARCH_LDFLAGS := -m elf_x86_64 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Mini-OS] Drop useless -fpic flag 2007-11-28 16:35 ` [Mini-OS] Drop useless -fpic flag Samuel Thibault @ 2007-11-28 16:42 ` Keir Fraser 2007-11-28 17:29 ` Grzegorz Miłoś 0 siblings, 1 reply; 5+ messages in thread From: Keir Fraser @ 2007-11-28 16:42 UTC (permalink / raw) To: Samuel Thibault; +Cc: xen-devel Ah yes, I think the -fpic was inherited from Xen's Makefile. Xen has to be built -fpic because it is not linked sufficiently close to address 0x0 to use absolute addressing the 32-bit displacements. This isn't the case for minios. -- Keir On 28/11/07 16:35, "Samuel Thibault" <samuel.thibault@eu.citrix.com> wrote: > Keir Fraser, le Tue 27 Nov 2007 12:33:23 +0000, a écrit : >> If it builds without it then it should be fine, I believe. > > And nobody raised his hand, so here is a patch: > > Drop useless -fpic flag. > > Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com> > > diff -r c555a5f97982 extras/mini-os/arch/x86/arch.mk > --- a/extras/mini-os/arch/x86/arch.mk Wed Nov 28 13:36:56 2007 +0000 > +++ b/extras/mini-os/arch/x86/arch.mk Wed Nov 28 16:33:37 2007 +0000 > @@ -17,7 +17,7 @@ endif > endif > > ifeq ($(TARGET_ARCH),x86_64) > -ARCH_CFLAGS := -m64 -mno-red-zone -fpic -fno-reorder-blocks > +ARCH_CFLAGS := -m64 -mno-red-zone -fno-reorder-blocks > ARCH_CFLAGS += -fno-asynchronous-unwind-tables > ARCH_ASFLAGS := -m64 > ARCH_LDFLAGS := -m elf_x86_64 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Mini-OS] Drop useless -fpic flag 2007-11-28 16:42 ` Keir Fraser @ 2007-11-28 17:29 ` Grzegorz Miłoś 0 siblings, 0 replies; 5+ messages in thread From: Grzegorz Miłoś @ 2007-11-28 17:29 UTC (permalink / raw) To: Keir Fraser; +Cc: xen-devel, Samuel Thibault Yes, that's right. At the time I was writing the first version I just copied all the flags. I, too, believe -fpic acn be discarded. Cheers Gregor On 28 Nov 2007, at 16:42, Keir Fraser wrote: > Ah yes, I think the -fpic was inherited from Xen's Makefile. Xen has > to be > built -fpic because it is not linked sufficiently close to address > 0x0 to > use absolute addressing the 32-bit displacements. This isn't the > case for > minios. > > -- Keir > > On 28/11/07 16:35, "Samuel Thibault" <samuel.thibault@eu.citrix.com> > wrote: > >> Keir Fraser, le Tue 27 Nov 2007 12:33:23 +0000, a écrit : >>> If it builds without it then it should be fine, I believe. >> >> And nobody raised his hand, so here is a patch: >> >> Drop useless -fpic flag. >> >> Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com> >> >> diff -r c555a5f97982 extras/mini-os/arch/x86/arch.mk >> --- a/extras/mini-os/arch/x86/arch.mk Wed Nov 28 13:36:56 2007 +0000 >> +++ b/extras/mini-os/arch/x86/arch.mk Wed Nov 28 16:33:37 2007 +0000 >> @@ -17,7 +17,7 @@ endif >> endif >> >> ifeq ($(TARGET_ARCH),x86_64) >> -ARCH_CFLAGS := -m64 -mno-red-zone -fpic -fno-reorder-blocks >> +ARCH_CFLAGS := -m64 -mno-red-zone -fno-reorder-blocks >> ARCH_CFLAGS += -fno-asynchronous-unwind-tables >> ARCH_ASFLAGS := -m64 >> ARCH_LDFLAGS := -m elf_x86_64 > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-28 17:29 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-11-27 11:16 [Mini-OS] -fpic? Samuel Thibault 2007-11-27 12:33 ` Keir Fraser 2007-11-28 16:35 ` [Mini-OS] Drop useless -fpic flag Samuel Thibault 2007-11-28 16:42 ` Keir Fraser 2007-11-28 17:29 ` Grzegorz Miłoś
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.