version 1.497, 2017/05/29 10:24:06 |
version 1.498, 2017/05/30 12:04:26 |
|
|
|
|
# Re-link libraries, placing the objects in a random order. |
# Re-link libraries, placing the objects in a random order. |
reorder_libs() { |
reorder_libs() { |
local _l _liba _libas _tmpdir _remount=false _error=false |
local _dkdev _l _liba _libas _mp _tmpdir _remount=false _error=false |
local _dkdev=$(df /usr/lib | sed '1d;s/ .*//') |
|
local _mp=$(mount | grep "^$_dkdev") |
[[ $library_aslr == NO ]] && return |
|
|
|
_dkdev=$(df /usr/lib | sed '1d;s/ .*//') |
|
_mp=$(mount | grep "^$_dkdev") |
|
|
# Skip if /usr/lib is on a nfs mounted filesystem. |
# Skip if /usr/lib is on a nfs mounted filesystem. |
[[ $_mp == *' type nfs '* ]] && return |
[[ $_mp == *' type nfs '* ]] && return |