From: Michael Meissner Date: Wed, 24 May 1995 16:52:13 +0000 (+0000) Subject: Provide start, _start for gld to use as start address. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2aa82cbedac088fd29b23acf99c1354569f403ef;p=gcc.git Provide start, _start for gld to use as start address. From-SVN: r9797 --- diff --git a/gcc/libgcc1-test.c b/gcc/libgcc1-test.c index 9b2a5c42ddf..392d4fc7e9c 100644 --- a/gcc/libgcc1-test.c +++ b/gcc/libgcc1-test.c @@ -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() {}