Re: [PATCH 20/22] objtool: Fix seg fault on bad switch table entry

2019-07-18 Thread Nick Desaulniers
On Mon, Jul 15, 2019 at 10:29 AM Josh Poimboeuf wrote: > > On Mon, Jul 15, 2019 at 10:24:24AM -0700, Nick Desaulniers wrote: > > On Sun, Jul 14, 2019 at 5:37 PM Josh Poimboeuf wrote: > > > > > > In one rare case, Clang generated the following code: > > > > > > 5ca: 83 e0 21

Re: [PATCH 20/22] objtool: Fix seg fault on bad switch table entry

2019-07-15 Thread Josh Poimboeuf
On Mon, Jul 15, 2019 at 10:24:24AM -0700, Nick Desaulniers wrote: > On Sun, Jul 14, 2019 at 5:37 PM Josh Poimboeuf wrote: > > > > In one rare case, Clang generated the following code: > > > > 5ca: 83 e0 21and$0x21,%eax > > 5cd: b9 04 00 00 00 mov$0x4,

Re: [PATCH 20/22] objtool: Fix seg fault on bad switch table entry

2019-07-15 Thread Nick Desaulniers
On Sun, Jul 14, 2019 at 5:37 PM Josh Poimboeuf wrote: > > In one rare case, Clang generated the following code: > > 5ca: 83 e0 21and$0x21,%eax > 5cd: b9 04 00 00 00 mov$0x4,%ecx > 5d2: ff 24 c5 00 00 00 00jmpq *0x0(,%rax,8) >