Cutover to hardened toolchain by default (1 of 3). BUG=3981 TEST=pending

Never use the target board's ld-linux.so.2.

Review URL: http://codereview.chromium.org/2828018
This commit is contained in:
Frank Swiderski 2010-06-21 22:27:04 -07:00
parent ec29805fde
commit 75dc6c7845

View File

@ -57,17 +57,9 @@ trap cleanup ERR 0
# disable this on hardened, since that is where the PIE conflict happens. # disable this on hardened, since that is where the PIE conflict happens.
for i in ${TESTS_DIR}/*_{test,unittests}; do for i in ${TESTS_DIR}/*_{test,unittests}; do
if [[ "`file -b $i`" = "POSIX shell script text executable" ]]; then if [[ "`file -b $i`" = "POSIX shell script text executable" ]]; then
if [[ -f /etc/hardened ]]; then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH /build/${FLAGS_board}/bin/bash $i LD_LIBRARY_PATH=$LD_LIBRARY_PATH /build/${FLAGS_board}/bin/bash $i
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH /build/${FLAGS_board}/lib/ld-linux.so.2 /build/${FLAGS_board}/bin/bash $i
fi
else else
if [[ -f /etc/hardened ]]; then
LD_LIBRARY_PATH=$LD_LIBRARY_PATH $i LD_LIBRARY_PATH=$LD_LIBRARY_PATH $i
else
LD_LIBRARY_PATH=$LD_LIBRARY_PATH /build/${FLAGS_board}/lib/ld-linux.so.2 $i
fi
fi fi
done done