[U-Boot] [PATCH 1/1] x86: qemu: do not build car.o with start64.o

Bin Meng bmeng.cn at gmail.com
Tue Jun 19 07:11:11 UTC 2018


Hi Heinrich,

On Tue, Jun 19, 2018 at 2:10 PM, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
> On 06/19/2018 04:37 AM, Bin Meng wrote:
>> Hi Heinrich,
>>
>> On Tue, Jun 12, 2018 at 11:50 PM, Heinrich Schuchardt
>> <xypron.glpk at gmx.de> wrote:
>>> car.o can only be used with start.o, not with start64.o.
>>>
>>> So on qemu 64bit it should only be built for 32bit SPL but not for u-boot.
>>>
>>> Without this patch but with an unrelated pending patch
>>> ("x86: Add 64-bit setjmp/longjmp implementation") the
>>> following error occurred for qemu-x86_64_defconfig:
>>>
>>
>> I don't understand why Ivan's setmp/longjmp patch triggers this build
>> issue. Can you elaborate?
>
> Hello Bin,
>
> it was what I observed.
>
> As start.S calls car_init() but start_64.S does not the linker could
> eliminate car.o on x86_64. Why it does not eliminate it with the patch I
> do not know.
>

Thanks.

> But I still think that building car.o on 64bit does not make sense.
>

Yes, so please do the rebase and send v2. You can drop the commit
message mentioning Ivan's patch since it has not been applied.

Regards,
Bin


More information about the U-Boot mailing list