FS#12464 - blas 20070405-1: /usr/lib/libblas.so.3.0.3 contains TEXT relocations on x86

Attached to Project: Arch Linux
Opened by Markus Dittrich (markusle) - Monday, 15 December 2008, 18:58 GMT
Last edited by Ronald van Haren (pressh) - Tuesday, 30 December 2008, 12:50 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture i686
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The libblas.so.3.0.3 shared object for x86 contains text relocations.
Text relocations in shared objects should be avoided since they
require the kernel to do more work during loading and also constitute
a potential security risk.

Solution:

Since arch only ships shared libs and no static ones, the x86 objects
linked into the so should be compiled with -fPIC. The current PKGBUILD
does this already for x86_64. Is there any reason why this is not also
done for x86?

Thanks much for considering this request.

Best,
Markus

This task depends upon

Closed by  Ronald van Haren (pressh)
Tuesday, 30 December 2008, 12:50 GMT
Reason for closing:  Implemented
Comment by Ronald van Haren (pressh) - Tuesday, 16 December 2008, 00:13 GMT
blas is compiled on x86_64 with -fPIC because it can't be compiled without.

As for -fPIC in general and in particular on x86, quite often it slows things down instead of speeding things up (I have not looked into this particular package yet). Do you have any benchmarks and statements to backup your claim for this package?
Comment by Markus Dittrich (markusle) - Tuesday, 16 December 2008, 02:57 GMT
See my reply to #12465.

Thank you,
Markus

Loading...