[BUG] libDSS.so has broken linkage on hardened linux
Boriss Mejias
boris.mejias at uclouvain.be
Mon Jul 7 20:16:27 CEST 2008
Hi guys,
I just applied the patch of Keri and run ./reconf.sh but it didn't change
anything. The reason is that the reconf script searches for configure.in
files, but the one at platform/dss is called config.in, so the reconstruction
is not invoked. I changed the name of the file and it generated some
completely different configure file, so I don't want to add it to the
repository because it might break many things.
I had a look at the history of this file, and I see that Raph and Yves edited
it. Did you guys do it by hand? or did you use some other script to generate it?
cheers
Boriss
Raphael Collet wrote:
> Dear Keri,
>
> Thanks a lot for the patches you sent. This really helps, since I am
> really not good for all these configure/linking stuff. I will push your
> patches on the svn trunk and branch mozart-1-4-x on Monday. They will
> be part of Mozart 1.4.1, which should probably show up soon.
>
> Cheers,
> raph
>
> Keri Harris wrote:
>> DSS linked dynamically on a linux system with a hardened kernel is
>> causing problems due to TEXTRELs:
>>
>> $ scanelf -qyRF '%T %p' libDSS.so
>> libDSS.so: _ZTV14ThreadMediator [0x41B7E] in (optimized out:
>> previous _ZN14ThreadMediatorC2Ev) [0x41B7C]
>> libDSS.so: _ZTV14ThreadMediator [0x41B82] in (optimized out:
>> previous _ZN14ThreadMediatorC2Ev) [0x41B7C]
>> <snip>
>> libDSS.so:
>> _ZN13_dss_internal11DksBackbone24m_installBackboneServiceEPNS_12LargeMessageE
>> [0x82AE8] in (optimized out: previous
>> _ZN13_dss_internal11DksBackbone15m_receivedRouteEiPNS_10DksMessageE)
>> [0x82994]
>> libDSS.so: _ZN13_dss_internal12LargeMessage7isEmptyEv [0x82964] in
>> (optimized out: previous
>> _ZN13_dss_internal11DksBackbone19m_newResponsabilityEiiiPNS_10DksMessageE)
>> [0x8291C]
>> libDSS.so
>>
>> $ scanelf -qyRF '%T %p' libDSS.so | wc -l
>> 5329
>>
>> libDSS.so should be linked as PIC. The attached patch addresses this.
>>
>>
>> ------------------------------------------------------------------------
>>
>> _________________________________________________________________________________
>>
>> mozart-hackers mailing list
>> mozart-hackers at mozart-oz.org
>> http://www.mozart-oz.org/mailman/listinfo/mozart-hackers
>
> _________________________________________________________________________________
>
> mozart-hackers mailing list
> mozart-hackers at mozart-oz.org
> http://www.mozart-oz.org/mailman/listinfo/mozart-hackers
More information about the mozart-hackers
mailing list