diff options
Diffstat (limited to 'binutils-2.21/ld/testsuite/ld-shared/sh2.c')
-rw-r--r-- | binutils-2.21/ld/testsuite/ld-shared/sh2.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/binutils-2.21/ld/testsuite/ld-shared/sh2.c b/binutils-2.21/ld/testsuite/ld-shared/sh2.c new file mode 100644 index 0000000..7cd1db3 --- /dev/null +++ b/binutils-2.21/ld/testsuite/ld-shared/sh2.c @@ -0,0 +1,22 @@ +/* This is part of the shared library ld test. This file becomes part + of a shared library. */ + +/* This variable is defined here, and referenced by another file in + the shared library. */ +int shlibvar2 = 4; + +/* This function is called by another file in the shared library. */ + +int +shlib_shlibcalled () +{ + return 5; +} + +#ifndef XCOFF_TEST +int +shlib_overriddencall2 () +{ + return 7; +} +#endif |