grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Ensure that MIPS target code is compiled for the O32 ABI.


From: Andrei Borzenkov
Subject: Re: [PATCH] Ensure that MIPS target code is compiled for the O32 ABI.
Date: Mon, 24 Aug 2015 12:27:48 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0

24.08.2015 11:12, Andrei Borzenkov пишет:
24.08.2015 10:57, Mark H Weaver пишет:
Andrei Borzenkov <address@hidden> writes:
Could you paste "clang -v" output for both cases? I believe I
understand what's going on.

Okay, I've included it below.  It might be relevant to mention that the
MIPS port of GNU Guix is not a 'multilib' system: it includes support
only for the N32 ABI.  However, our gcc is still capable of generating
freestanding code for the O32 ABI, as demonstrated by the fact that I've
been successfully building and using GRUB on it.

     Thanks,
       Mark

--8<---------------cut here---------------start------------->8---
address@hidden:~$ clang -v -mabi=32 mips.S
clang version 3.6.0 (tags/RELEASE_360/final)
Target: mips64el-unknown-linux-gnu

Yes, as expected. clang treats mips and mips64 as two different targets
so o32 is invalid for mips64.

Could you test attached patch for both gcc and clang? Use

configure TARGET_CC=clang

Sorry, was broken, fixed version attached.

Attachment: mips-o32.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]