[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [XEN PATCH v3 20/23] xen/build: factorise generation of the linker scripts



On 27.02.2020 14:14, Roger Pau Monné wrote:
> On Wed, Feb 26, 2020 at 11:33:52AM +0000, Anthony PERARD wrote:
>> In Arm and X86 makefile, generating the linker script is the same, so
>> we can simply have both call the same macro.
>>
>> We need to add *.lds files into extra-y so that Rules.mk can find the
>> .*.cmd dependency file and load it.
>>
>> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>> ---
>>  xen/Rules.mk          | 8 ++++++++
>>  xen/arch/arm/Makefile | 5 ++---
>>  xen/arch/x86/Makefile | 6 +++---
>>  3 files changed, 13 insertions(+), 6 deletions(-)
>>
>> diff --git a/xen/Rules.mk b/xen/Rules.mk
>> index 8c7dba9211d1..02cd37d04054 100644
>> --- a/xen/Rules.mk
>> +++ b/xen/Rules.mk
>> @@ -230,6 +230,14 @@ cmd_s_S = $(CPP) $(filter-out -Wa$(comma)%,$(a_flags)) 
>> $< -o $@
>>  %.s: %.S FORCE
>>      $(call if_changed,cpp_s_S)
>>  
>> +# Linker scripts, .lds.S -> .lds
>> +quiet_cmd_cc_lds_S = LDS     $@
>> +define cmd_cc_lds_S
>> +    $(CC) -P -E -Ui386 $(filter-out -Wa$(comma)%,$(a_flags)) -o $@ $<; \
> 
> Do you know why the -Ui386 is needed?

It was needed for the 32-bit hypervisor build, to avoid corrupting

OUTPUT_ARCH(i386)

but it's not needed anymore. Arm shouldn't have had it in the first
place.

Jan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.