Re: [PATCH v2] objtool: ignore unreachable trap after call to noreturn functions

2020-09-21 Thread Josh Poimboeuf
On Sat, Sep 19, 2020 at 09:41:18AM +0300, Ilie Halip wrote: > With CONFIG_UBSAN_TRAP enabled, the compiler may insert a trap instruction > after a call to a noreturn function. In this case, objtool warns that the > ud2 instruction is unreachable. > > This is a behavior seen with clang, from the ol

Re: [PATCH v2] objtool: ignore unreachable trap after call to noreturn functions

2020-09-19 Thread Sedat Dilek
On Sat, Sep 19, 2020 at 8:41 AM Ilie Halip wrote: > > With CONFIG_UBSAN_TRAP enabled, the compiler may insert a trap instruction > after a call to a noreturn function. In this case, objtool warns that the > ud2 instruction is unreachable. > > This is a behavior seen with clang, from the oldest ver

[PATCH v2] objtool: ignore unreachable trap after call to noreturn functions

2020-09-18 Thread Ilie Halip
With CONFIG_UBSAN_TRAP enabled, the compiler may insert a trap instruction after a call to a noreturn function. In this case, objtool warns that the ud2 instruction is unreachable. This is a behavior seen with clang, from the oldest version capable of building the mainline x64_64 kernel (9.0), to