diff options
author | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-05-30 10:20:54 -0700 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@kernel.org> | 2023-06-07 10:03:13 -0700 |
commit | 2707579dfa615a5dda4aabb92e433f03a87b5ec5 (patch) | |
tree | 4eec409e0cf0dda31142db53fbda729f5bcef16d /tools/objtool/include | |
parent | objtool: Tidy elf.h (diff) | |
download | wireguard-linux-2707579dfa615a5dda4aabb92e433f03a87b5ec5.tar.xz wireguard-linux-2707579dfa615a5dda4aabb92e433f03a87b5ec5.zip |
objtool: Remove flags argument from elf_create_section()
Simplify the elf_create_section() interface a bit by removing the flags
argument. Most callers don't care about changing the section header
flags. If needed, they can be modified afterwards, just like any other
section header field.
Link: https://lore.kernel.org/r/515235d9cf62637a14bee37bfa9169ef20065471.1685464332.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/objtool/include')
-rw-r--r-- | tools/objtool/include/objtool/elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/objtool/include/objtool/elf.h b/tools/objtool/include/objtool/elf.h index b24f83e7ca34..2c28aeeb3cb2 100644 --- a/tools/objtool/include/objtool/elf.h +++ b/tools/objtool/include/objtool/elf.h @@ -109,7 +109,7 @@ struct elf { }; struct elf *elf_open_read(const char *name, int flags); -struct section *elf_create_section(struct elf *elf, const char *name, unsigned int sh_flags, size_t entsize, int nr); +struct section *elf_create_section(struct elf *elf, const char *name, size_t entsize, int nr); struct symbol *elf_create_prefix_symbol(struct elf *elf, struct symbol *orig, long size); |