[Mono-bugs] [Bug 82772][Maj] New - mono fails to build on PIE enabled systems

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Sep 9 16:32:59 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jurek at gentoo.org.

http://bugzilla.ximian.com/show_bug.cgi?id=82772

--- shadow/82772	2007-09-09 16:32:59.000000000 -0400
+++ shadow/82772.tmp.14280	2007-09-09 16:32:59.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 82772
+Product: Mono: Runtime
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jurek at gentoo.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono fails to build on PIE enabled systems
+
+Description of Problem:
+
+mono appears to fail linking of libmono-static.a if compiled
+with pie enabled:
+
+x86_64-pc-linux-gnu-gcc -I../.. -I../../libgc/include -I/usr/include/glib-2.0
+-I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0
+-I/usr/lib64/glib-2.0/include -march=opteron -O2 -pipe -fno-strict-aliasing
+-Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes
+-Wmissing-declarations -Wstrict-prototypes -Wmissing-prototypes
+-Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings
+-mno-tls-direct-seg-refs -Wl,-version-script=./ldscript.mono -o mono main.o
+-pthread -Wl,--export-dynamic -Wl,--export-dynamic  ./.libs/libmono-static.a
+/usr/lib64/libgthread-2.0.so /usr/lib64/libgmodule-2.0.so -ldl
+/usr/lib64/libglib-2.0.so -lrt -lpthread -lm
+/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.6/../../../../x86_64-pc-linux-gnu/bin/ld:
+./.libs/libmono-static.a(threads.o): relocation R_X86_64_TPOFF32 against `a
+local symbol' can not be used when making a shared object; recompile with -fPIC
+./.libs/libmono-static.a: could not read symbols: Bad value
+collect2: ld returned 1 exit status
+make[4]: *** [mono] Error 1
+make[4]: Leaving directory
+`/var/tmp/portage/mono-1.2.2.1/work/mono-1.2.2.1/mono/mini'
+make[3]: *** [all] Error 2
+
+this also applies to newer mono versions. Here's the original gentoo
+bugzilla entry:
+
+http://bugs.gentoo.org/show_bug.cgi?id=165547
+
+you can read about PIE/SSP here:
+
+http://www.gentoo.org/proj/en/hardened/pie-ssp.xml
+
+a patch (which probably needs more testing) fixing this problem will follow


More information about the mono-bugs mailing list