mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
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:
parent
ee1fc45ee1
commit
5fe4eff8c4
@ -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;
|
||||
|
||||
|
@ -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); \
|
||||
|
Loading…
x
Reference in New Issue
Block a user