From 2ee6f678b61efbe686338fb7771e05859940f314 Mon Sep 17 00:00:00 2001 From: David McCullough Date: Thu, 7 May 2009 03:32:21 +0000 Subject: [PATCH] If there is no bss section, set bss_vma to the end of data. Signed-off-by: Jie Zhang Signed-off-by: Mike Frysinger --- elf2flt.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5