diff --git a/src/bootimage.cpp b/src/bootimage.cpp index a58f6a6af5..548b8bd39d 100644 --- a/src/bootimage.cpp +++ b/src/bootimage.cpp @@ -1826,10 +1826,10 @@ public: entryClass(0), entryMethod(0), entrySpec(0), - bootimageStart(strdup("_binary_bootimage_bin_start")), - bootimageEnd(strdup("_binary_bootimage_bin_end")), - codeimageStart(strdup("_binary_codeimage_bin_start")), - codeimageEnd(strdup("_binary_codeimage_bin_end")) + bootimageStart(0), + bootimageEnd(0), + codeimageStart(0), + codeimageEnd(0) { ArgParser parser; Arg classpath(parser, true, "cp", ""); @@ -1870,6 +1870,22 @@ public: exit(1); } + if(!bootimageStart) { + bootimageStart = strdup("_binary_bootimage_bin_start"); + } + + if(!bootimageEnd) { + bootimageEnd = strdup("_binary_bootimage_bin_end"); + } + + if(!codeimageStart) { + codeimageStart = strdup("_binary_codeimage_bin_start"); + } + + if(!codeimageEnd) { + codeimageEnd = strdup("_binary_codeimage_bin_end"); + } + } ~Arguments() {