]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-selective/2.c
import gdb-1999-08-16 snapshot
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-selective / 2.c
1 /* Normally we should loose foo and keep _start and _init.
2 With -u foo, we should keep that as well. */
3
4 void _start() __asm__("_start");
5 void _start()
6 {
7 }
8
9 void __attribute__((section(".init")))
10 _init()
11 {
12 }
13
14 int foo() __asm__("foo");
15 int foo()
16 {
17 static int x = 1;
18 return x++;
19 }