From: nasm-bot f. C. G. <gor...@gm...> - 2016-04-24 18:00:19
|
Commit-ID: 2bb791956e040a35122926cc4da86d97b824d901 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=2bb791956e040a35122926cc4da86d97b824d901 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 13 Mar 2016 01:02:04 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 24 Apr 2016 20:02:40 +0300 out: Elf32, Elfx32, Elf64 -- Use ofmt->maxbits 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; } |