From: David McCullough Date: Thu, 7 May 2009 03:32:21 +0000 (+0000) Subject: If there is no bss section, set bss_vma to the end of data. X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2ee6f678b61efbe686338fb7771e05859940f314;p=elf2flt.git If there is no bss section, set bss_vma to the end of data. Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger --- diff --git a/elf2flt.c b/elf2flt.c index 546305f..289d542 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -2022,6 +2022,9 @@ int main(int argc, char *argv[]) exit(2); } + if (bss_vma == ~0) + bss_vma = data_vma + data_len; + /* Put common symbols in bss. */ bss_len += add_com_to_bss(symbol_table, number_of_symbols, bss_len);