libtbb.so.2 not compiled with -fPIC for Linux x86-64?

libtbb.so.2 not compiled with -fPIC for Linux x86-64?

Hi,

I am using TBB under Linux and I just ran into the issue that libtbb.so.2 is not compiled using the -fPIC option -- or in otherwords, the libtbb.so.2 contains text relocations.

Text relocations are explained here:

http://people.redhat.com/drepper/textrelocs.html

You can verify that libtbb.so.2 contains text relocations via running this command line:

[root@mtl-siqa23]# eu-findtextrel libtbb.so.2

Text relocations can result in SELinux policy warnings or errors. It is best these days to use the -fPIC option to avoid having text relocations.

I am somewhat new to Linux development, so maybe someone has a workaround or is there something I am not understanding?

If I am understanding correctly, it would be great if libtbb.so.2 was recompiled such that there were no text relocations.

I am using the commercial version of TBB and thus I understand that I can't just take the source to the open source TBB version and recompile it myself using the -fPIC option for my commercial use. (Although if that was allowed, it would be really nice.)

Best regards,
Ben Houston
http://www.exocortex.com

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi,

This issue was fixed in TBB 2.2 update 1 by compiler upgrade.

--Vladimir

Login to leave a comment.