|
From: Cyrill G. <gor...@gm...> - 2016-04-07 22:17:12
|
Signed-off-by: Cyrill Gorcunov <gor...@gm...>
---
output/outelf32.c | 5 +----
output/outelf64.c | 5 +----
output/outelfx32.c | 5 +----
3 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/output/outelf32.c b/output/outelf32.c
index a0c5e83..0e680c7 100644
--- a/output/outelf32.c
+++ b/output/outelf32.c
@@ -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;
}
diff --git a/output/outelf64.c b/output/outelf64.c
index 5a177cb..1f8247a 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -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;
}
diff --git a/output/outelfx32.c b/output/outelfx32.c
index e601d35..ed94942 100644
--- a/output/outelfx32.c
+++ b/output/outelfx32.c
@@ -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;
}
--
2.5.5
|