libmysqld.a is not compiled with -fPIC

Bug #618282 reported by Christophe Devine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MariaDB
Fix Released
High
Kristian Nielsen

Bug Description

The binary objects in the embedded library (libmysqld.a) are not all compiled with fPIC, this leads to the following error message when attempting to create a position-independant executable (-pie):

/usr/bin/ld: /opt/mariadb/lib/mysql/libmysqld.a(my_new.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

I can recompile manually mariadb by adding -fPIC to CFLAGS, but it would be nice to have this option turned on in the binary Linux distribution as well.

Tags: pie relocation
Revision history for this message
Christophe Devine (xdbg) wrote :

Btw, this is using mariadb-5.1.49-Linux-x86_64.tar.gz

Revision history for this message
Kristian Nielsen (knielsen) wrote :
Changed in maria:
status: New → Incomplete
status: Incomplete → Fix Released
status: Fix Released → Fix Committed
importance: Undecided → High
assignee: nobody → Kristian Nielsen (knielsen)
milestone: none → 5.1
Changed in maria:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.