[Xorp-cvs] XORP cvs commit: xorp/policy/common
Bruce M Simpson
bms at incunabulum.net
Wed Aug 6 07:10:11 PDT 2008
Andrea Bittau wrote:
> Log message:
> Ever heard of the "static initialization order fiasco"? Well, on Mac OS X,
> dispatcher.cc's static stuff would get initialized first. This would tweak
> static variables in register_operations.cc. Then, register_operatoins.cc's
> static variables would get initialized, getting rid of the previous tweaks.
>
I've noticed gcc 4.3 occasionally emits incorrect code for static
initializers on FreeBSD. I ran into this when attempting to port
VirtualBox earlier this week.
It seems that it tries to insert a reference to a local symbol which is
in fact defined but prefixed with $, which the linker then cannot resolve.
It would be interesting to try with llvm-gcc, however its toolchain
still requires manual build, there's no packaging for it yet.
More information about the Xorp-cvs
mailing list