This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Could someone please test weak undefined symbol?



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]