out: Elf32, Elfx32, Elf64 -- Use ofmt->maxbits
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
e03bac6dbf
commit
2bb791956e
3 changed files with 3 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue