Fix handling of ENTRY in linker script.
authorIan Lance Taylor <iant@google.com>
Wed, 27 Feb 2008 15:09:16 +0000 (15:09 +0000)
committerIan Lance Taylor <iant@google.com>
Wed, 27 Feb 2008 15:09:16 +0000 (15:09 +0000)
gold/script.cc

index c7b26ef58581a6d2194cc3a234b0afba30e9c742..b5f2abb787f6bb75775734f138ab2cfbed315777 100644 (file)
@@ -2113,7 +2113,7 @@ script_set_entry(void* closurev, const char* entry, size_t length)
 {
   // We'll parse this exactly the same as --entry=ENTRY on the commandline
   // TODO(csilvers): FIXME -- call set_entry directly.
-  std::string arg("entry=");
+  std::string arg("--entry=");
   arg.append(entry, length);
   script_parse_option(closurev, arg.c_str(), arg.size());
 }