]> xenbits.xensource.com Git - xen.git/commitdiff
ppc: make also linking work with big-endian tool chain
authorJan Beulich <jbeulich@suse.com>
Thu, 6 Jul 2023 07:06:48 +0000 (09:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 6 Jul 2023 07:06:48 +0000 (09:06 +0200)
Telling just the compiler to produce little-endian objects isn't enough.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Shawn Anastasio <sanastasio@raptorengineering.com>
xen/arch/ppc/arch.mk

index ec2a6136f4f496ab9593a07b1b4f7c13f5288433..7eec22c2830e89e27561a285ad9c38105c4143a7 100644 (file)
@@ -7,6 +7,8 @@ ppc-march-$(CONFIG_POWER_ISA_3_00) := power9
 CFLAGS += -m64 -mlittle-endian -mcpu=$(ppc-march-y)
 CFLAGS += -mstrict-align -mcmodel=large -mabi=elfv2 -mno-altivec -mno-vsx
 
+LDFLAGS += -m elf64lppc
+
 # TODO: Drop override when more of the build is working
 override ALL_OBJS-y = arch/$(SRCARCH)/built_in.o
 override ALL_LIBS-y =