OSDN Git Service

objtool: Tidy elf.h
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 30 May 2023 17:20:53 +0000 (10:20 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:13 +0000 (10:03 -0700)
commit809373e17b2649948cc681dd1962b2736b22c7a6
tree03f5260cf68ce9e4d1c3e31b974b746be02f1896
parenta9da8247627eefc73f909bf945031a5431a53993
objtool: Tidy elf.h

Reorganize elf.h a bit:

- Move the prototypes higher up so they can be used by the inline
  functions.

- Move hash-related code to the bottom.

- Remove the unused ELF_HASH_BITS macro.

No functional changes.

Link: https://lore.kernel.org/r/b1490ed85951868219a6ece177a7cd30a6454d66.1685464332.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/include/objtool/elf.h