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 <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2017-03-25 20:55:11 +03:00
parent ee1fc45ee1
commit 5fe4eff8c4
2 changed files with 3 additions and 7 deletions

View File

@ -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;

View File

@ -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); \