lkml.org 
[lkml]   [2019]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 18/22] objtool: Refactor jump table code
On Sun, Jul 14, 2019 at 07:37:13PM -0500, Josh Poimboeuf wrote:
> Now that C jump tables are supported, call them "jump tables" instead of
> "switch tables". Also rename some other variables, add comments, and
> simplify the code flow a bit.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
> ---
> tools/objtool/check.c | 82 +++++++++++++++++++++++--------------------
> tools/objtool/elf.c | 2 +-
> tools/objtool/elf.h | 2 +-
> 3 files changed, 46 insertions(+), 40 deletions(-)
>
> diff --git a/tools/objtool/check.c b/tools/objtool/check.c
> index a190a6e79a91..b21e9f7768d0 100644
> --- a/tools/objtool/check.c
> +++ b/tools/objtool/check.c
> @@ -627,7 +627,7 @@ static int add_jump_destinations(struct objtool_file *file)
> * However this code can't completely replace the
> * read_symbols() code because this doesn't detect the
> * case where the parent function's only reference to a
> - * subfunction is through a switch table.
> + * subfunction is through a switch jump table.

s/switch// ?

\
 
 \ /
  Last update: 2019-07-15 11:39    [W:0.239 / U:2.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site