------- Comment #2 from pinskia at gcc dot gnu dot org 2006-11-15 02:50 ------- Seems to me, you should not be using a target that defines TARGET_THREAD_SSP_OFFSET for -ffreestanding mode. Also IIRC the x86_64 Linux has a different TLS base register which fixes this issue there.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29838