]> git.wh0rd.org Git - elf2flt.git/commitdiff
If there is no bss section, set bss_vma to the end of data.
authorDavid McCullough <davidm@snapgear.com>
Thu, 7 May 2009 03:32:21 +0000 (03:32 +0000)
committerDavid McCullough <davidm@snapgear.com>
Thu, 7 May 2009 03:32:21 +0000 (03:32 +0000)
Signed-off-by: Jie Zhang <jie.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
elf2flt.c

index 546305f6b95835a5eade341aca1883800c9ed5d6..289d54257fd1198ad952d532e8399bc3d390e3df 100644 (file)
--- 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);