This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Could someone please test weak undefined symbol?
- To: "H . J . Lu" <hjl at gnu dot org>
- Subject: Re: Could someone please test weak undefined symbol?
- From: Christian Iseli <chris at ludwig-alpha dot unil dot ch>
- Date: Tue, 13 Mar 2001 09:46:16 +0100
- Cc: gcc at gcc dot gnu dot org, GNU C Library <libc-alpha at sourceware dot cygnus dot com>
hjl@gnu.org said:
> I was told weak undefined symbol doesn't work on all arches with -On
> (n > 1) and it works on ia32 only by accident:
Seems to work on alpha...
alpha_chris$ gcc -O1 -o t t.c
alpha_chris$ ./t
foo: (nil)
alpha_chris$ gcc -O2 -o t t.c
alpha_chris$ ./t
foo: (nil)
alpha_chris$ gcc -O3 -o t t.c
alpha_chris$ ./t
foo: (nil)
alpha_chris$ uname -a
Linux ludwig-alpha 2.4.2-ac5 #24 Tue Feb 27 10:04:21 CET 2001 alpha unknown
alpha_chris$ gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/2.95.3/specs
gcc version 2.95.3 20010112 (prerelease)
alpha_chris$ ld -V
GNU ld version 2.10.91 (with BFD 2.10.91)
Supported emulations:
elf64alpha
alpha
Cheers,
Christian