This is the mail archive of the gcc-bugs@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: static object constructor bug.




> -----Original Message-----
> From:	Jason Merrill [SMTP:jason@cygnus.com]
> Sent:	Thursday, November 20, 1997 5:09 PM
> To:	paul@orion.co.nz; egcs-bugs@cygnus.com
> Subject:	Re: static object constructor bug.
> 
> >>>>> Paul Kendall <paul@orion.co.nz> writes:
> 
> > nm -B t.o | grep GLOB
> > 000000b8 T _GLOBAL_$D$_1A$b
> > 00000001 D _GLOBAL_$F$_1A$b
> > 0000011c T _GLOBAL_$I$_1A$b
> 
> > when B A::b; moved after A::A()
> 
> > nm -B t.o | grep GLOB
> > 000000b8 T _GLOBAL_$D$__1A
> > 00000001 D _GLOBAL_$F$__1A
> > 0000011c T _GLOBAL_$I$__1A
> 
> And how is this a bug?
> 
> Jason
> 
Ok, It looks like I found the bug after much digging.
It's not to do with gcc or egcs itself, but with collect2.

I was using libtool to build my application and it
happens to set the COLLECT_NAMES environment
variable to empty which causes collect2 to not build
the static constructor call function.

Sorry for the bad report.

Cheers,
Paul Kendall
Product Development Manager
Orion Systems New Zealand Ltd



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