diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-06-05 20:43:18 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-06-05 20:43:18 +0000 |
commit | 7cda33a15efa285ef24ad6bbcc6c4dfc4d73a0cd (patch) | |
tree | e428d05d3e7975bd833ca1b374eef0b0a0faa151 /ld/testsuite/ld-elfvsb/sh2.c | |
parent | 422ea4b878539bcf1c356f9a212a6b08244c81f0 (diff) | |
download | ppe42-binutils-7cda33a15efa285ef24ad6bbcc6c4dfc4d73a0cd.tar.gz ppe42-binutils-7cda33a15efa285ef24ad6bbcc6c4dfc4d73a0cd.zip |
2000-06-05 H.J. Lu (hjl@gnu.org)
* lib/ld-lib.exp (default_ld_link): Redirect the linker output
to link_output and make it global.
* ld-elfvsb/elfvsb.exp (visibility_test): Add "hidden_undef",
"hidden_undef_def", "hidden_weak", "protected_undef",
"protected_undef_def" and "protected_weak".
(visibility_run): Likewise.
* ld-elfvsb/main.c: Likewise.
* ld-elfvsb/sh1.c: Likewise.
* ld-elfvsb/sh2.c: Likewise.
* ld-elfvsb/elfvsb.dat: Updated.
Diffstat (limited to 'ld/testsuite/ld-elfvsb/sh2.c')
-rw-r--r-- | ld/testsuite/ld-elfvsb/sh2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfvsb/sh2.c b/ld/testsuite/ld-elfvsb/sh2.c index 013a4e0994..6ed30bc52e 100644 --- a/ld/testsuite/ld-elfvsb/sh2.c +++ b/ld/testsuite/ld-elfvsb/sh2.c @@ -12,3 +12,13 @@ shlib_shlibcalled () { return 5; } + +#ifdef DSO_DEFINE_TEST +int +visibility () +{ + return 2; +} + +int visibility_var = 2; +#endif |