out: Elf32, Elfx32, Elf64 -- Use ofmt->maxbits

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2016-03-13 01:02:04 +03:00
parent e03bac6dbf
commit 2bb791956e
3 changed files with 3 additions and 12 deletions

View file

@ -285,11 +285,8 @@ static int32_t elf_section_names(char *name, int pass, int *bits)
uint64_t align;
int type, i;
/*
* Default is 32 bits.
*/
if (!name) {
*bits = 32;
*bits = ofmt->maxbits;
return def_seg;
}

View file

@ -289,11 +289,8 @@ static int32_t elf_section_names(char *name, int pass, int *bits)
uint64_t align;
int type, i;
/*
* Default is 64 bits.
*/
if (!name) {
*bits = 64;
*bits = ofmt->maxbits;
return def_seg;
}

View file

@ -289,11 +289,8 @@ static int32_t elf_section_names(char *name, int pass, int *bits)
uint64_t align;
int type, i;
/*
* Default is 64 bits.
*/
if (!name) {
*bits = 64;
*bits = ofmt->maxbits;
return def_seg;
}