output: elf -- Rename section_attrib to elf_section_attrib

Global section_attrib name is too general.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2014-08-29 20:24:24 +04:00
parent 8a5d3e68a4
commit 9b76c802ae
5 changed files with 12 additions and 12 deletions

View File

@ -65,9 +65,9 @@ const struct elf_known_section elf_known_sections[] = {
};
/* parse section attributes */
void section_attrib(char *name, char *attr, int pass,
uint32_t *flags_and, uint32_t *flags_or,
uint64_t *align, int *type)
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

@ -101,9 +101,9 @@ struct stabentry {
#define sec_debug_frame (nsections-2)
#define sec_debug_loc (nsections-1)
void section_attrib(char *name, char *attr, int pass,
uint32_t *flags_and, uint32_t *flags_or,
uint64_t *align, int *type);
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 { \

View File

@ -343,8 +343,8 @@ static int32_t elf_section_names(char *name, int pass, int *bits)
*p++ = '\0';
flags_and = flags_or = type = align = 0;
section_attrib(name, p, pass, &flags_and,
&flags_or, &align, &type);
elf_section_attrib(name, p, pass, &flags_and,
&flags_or, &align, &type);
if (!strcmp(name, ".shstrtab") ||
!strcmp(name, ".symtab") ||

View File

@ -351,8 +351,8 @@ static int32_t elf_section_names(char *name, int pass, int *bits)
*p++ = '\0';
flags_and = flags_or = type = align = 0;
section_attrib(name, p, pass, &flags_and,
&flags_or, &align, &type);
elf_section_attrib(name, p, pass, &flags_and,
&flags_or, &align, &type);
if (!strcmp(name, ".shstrtab") ||
!strcmp(name, ".symtab") ||

View File

@ -349,8 +349,8 @@ static int32_t elf_section_names(char *name, int pass, int *bits)
*p++ = '\0';
flags_and = flags_or = type = align = 0;
section_attrib(name, p, pass, &flags_and,
&flags_or, &align, &type);
elf_section_attrib(name, p, pass, &flags_and,
&flags_or, &align, &type);
if (!strcmp(name, ".shstrtab") ||
!strcmp(name, ".symtab") ||