Provide start, _start for gld to use as start address.
authorMichael Meissner <meissner@gcc.gnu.org>
Wed, 24 May 1995 16:52:13 +0000 (16:52 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Wed, 24 May 1995 16:52:13 +0000 (16:52 +0000)
From-SVN: r9797

gcc/libgcc1-test.c

index 9b2a5c42ddf3cfde81df09a47298c8b4a1377664..392d4fc7e9c23c19f3e1ad789234a80c8c9d25e0 100644 (file)
@@ -90,3 +90,11 @@ dfoo ()
   return table[idx++];
 }
 
+/* Provide functions that some versions of the linker use to default
+   the start address if -e symbol is not used, to avoid the warning
+   message saying the start address is defaulted.  */
+extern void start() __asm__("start");
+extern void _start() __asm__("_start");
+
+void start() {}
+void _start() {}