I cannot reproduce it at the moment. Please provide more information about the used compiler and linker.
I would try the attached patch.
Best regards, Sven