This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32434] #pragma GCC visibility causes invalid relocation to __stach_chk_guard
- From: "equinox-gccbug at diac24 dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2007 17:51:12 -0000
- Subject: [Bug c/32434] #pragma GCC visibility causes invalid relocation to __stach_chk_guard
- References: <bug-32434-14730@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from equinox-gccbug at diac24 dot net 2007-06-20 17:51 -------
Created an attachment (id=13749)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13749&action=view)
Script for compiling test.c with different flags
# sh ./test.sh
-fno-stack-protector :
-fno-stack-protector -fvisibility=internal:
-fno-stack-protector -DVIS_ATTR:
-fno-stack-protector -DVIS_PRAGMA:
-fno-stack-protector -DVIS_PRAGMA -DREF_BEFORE:
-fstack-protector-all :
-fstack-protector-all -fvisibility=internal:
-fstack-protector-all -DVIS_ATTR:
-fstack-protector-all -DVIS_PRAGMA:
/usr/lib/gcc/i686-colt-linux-gnu/4.1.2/../../../../i686-colt-linux-gnu/bin/ld:
/tmp/ccHCfgCk.o(.text+0x14): unresolvable relocation against symbol
`__stack_chk_guard@@LIBSSP_1.0'
/usr/lib/gcc/i686-colt-linux-gnu/4.1.2/../../../../i686-colt-linux-gnu/bin/ld:
final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
-fstack-protector-all -DVIS_PRAGMA -DREF_BEFORE:
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32434