mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
22d5e33918
2003-05-20 Jakub Jelinek <jakub@redhat.com> * elflink.h (elf_link_output_extsym): Only issue error about != STV_DEFAULT symbols if they are bfd_link_hash_undefined. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (_bfd_elf_merge_symbol): Check ELF_LINK_DYNAMIC_DEF when removing the old definition for symbols with non-default visibility. ld/testsuite/ 2003-05-20 Jakub Jelinek <jakub@redhat.com> * ld-elfvsb/common.c: New file. * ld-elfvsb/elfvsb.exp: Add common. 2003-05-20 H.J. Lu <hongjiu.lu@intel.com> * ld-elfvsb/sh3.c: New file. * ld-elfvsb/test.c: Likewise. * ld-elfvsb/elfvsb.exp: Add new weak hidden symbol tests.
27 lines
374 B
C
27 lines
374 B
C
#pragma weak main_hidden_data
|
|
extern int main_hidden_data;
|
|
asm (".hidden main_hidden_data");
|
|
|
|
#pragma weak main_hidden_func
|
|
extern int main_hidden_func ();
|
|
asm (".hidden main_hidden_func");
|
|
|
|
int
|
|
_start (void)
|
|
{
|
|
int ret = 0;
|
|
|
|
if (&main_hidden_data != 0)
|
|
ret = 1;
|
|
if (main_hidden_func != 0)
|
|
ret = 1;
|
|
|
|
return ret;
|
|
}
|
|
|
|
int
|
|
__start (void)
|
|
{
|
|
return _start ();
|
|
}
|