Re: [tip:x86/seves] BUILD SUCCESS WITH WARNING e6eb15c9ba3165698488ae5c34920eea20eaa38e

Arvind Sankar
2020-09-15T21:52:21Z

On Tue, Sep 15, 2020 at 10:49:12PM +0200, Borislav Petkov wrote:
>
> (Btw, clang doesn't need to add that "xor %eax,%eax" - panic() should not be
> returning, ever. :-))
>

I think this is because panic() is varargs, and clang doesn't support
gcc's -mskip-rax-setup. The normal ABI requires the caller to set RAX to
the number of arguments in vector registers.