OSDN Git Service

Provide start, _start for gld to use as start address.
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 1995 16:52:13 +0000 (16:52 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 1995 16:52:13 +0000 (16:52 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9797 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/libgcc1-test.c

index 9b2a5c4..392d4fc 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() {}