From: nasm-bot f. C. G. <gor...@gm...> - 2017-03-25 22:12:29
|
Commit-ID: 5fe4eff8c40c50bfbd2de230286d20a378522a25 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=5fe4eff8c40c50bfbd2de230286d20a378522a25 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 25 Mar 2017 20:55:11 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sat, 25 Mar 2017 22:15:04 +0300 output: elf -- Make elf_section_attrib static After elf files have been merged into one no need to keep it global. Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- output/outelf.c | 6 +++--- output/outelf.h | 4 ---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/output/outelf.c b/output/outelf.c index 9932ff6..ebff4d4 100644 --- a/output/outelf.c +++ b/output/outelf.c @@ -209,9 +209,9 @@ const struct elf_known_section elf_known_sections[] = { }; /* parse section attributes */ -void elf_section_attrib(char *name, char *attr, int pass, - uint32_t *flags_and, uint32_t *flags_or, - uint64_t *align, int *type) +static void elf_section_attrib(char *name, char *attr, int pass, + uint32_t *flags_and, uint32_t *flags_or, + uint64_t *align, int *type) { char *opt, *val, *next; diff --git a/output/outelf.h b/output/outelf.h index 0f718d9..8eef73a 100644 --- a/output/outelf.h +++ b/output/outelf.h @@ -103,10 +103,6 @@ struct stabentry { extern uint8_t elf_osabi; extern uint8_t elf_abiver; -void elf_section_attrib(char *name, char *attr, int pass, - uint32_t *flags_and, uint32_t *flags_or, - uint64_t *align, int *type); - #define WRITE_STAB(p,n_strx,n_type,n_other,n_desc,n_value) \ do { \ WRITELONG(p, n_strx); \ |