Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: src/trusted/validator_arm/testdata/compile_tests.sh

Issue 8275008: Make validator require read sandboxing on ARM. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator_arm/testdata/compile_tests.sh
===================================================================
--- src/trusted/validator_arm/testdata/compile_tests.sh (revision 6937)
+++ src/trusted/validator_arm/testdata/compile_tests.sh (working copy)
@@ -6,24 +6,26 @@
set -eu
# Get the path to the ARM cross-compiler.
-# We use the trusted compiler because llvm-fake.py (used in the
-# untrusted compiler) doesn't support -nodefaultlibs.
dir=$(pwd)
cd ../../../..
-eval "$(tools/llvm/setup_arm_trusted_toolchain.py)"
topdir=$(pwd)
+tools="$topdir/toolchain/pnacl_linux_x86_64_newlib/pkg/binutils/bin"
cd $dir
-ldscript=$topdir/toolchain/pnacl_linux_x86_64/ldscripts/ld_script_arm_untrusted
+ldscript=$topdir/tools/llvm/ld_script_arm_untrusted
+readonly ARM_LD="$tools/arm-pc-nacl-ld"
+readonly ARM_AS="$tools/arm-pc-nacl-as"
-readonly ARM_CROSS_COMPILER="${ARM_CC}"
for test_file in *.S ; do
object_file=${test_file%.*}.o
nexe_file=${test_file%.*}.nexe
+ pre_file=${test_file%.*}.s
echo "compiling $test_file -> $nexe_file"
- ${ARM_CROSS_COMPILER} \
- -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -c $test_file -o $object_file
+ cpp $test_file -o $pre_file
+ ${ARM_AS} -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -c $pre_file \
+ -o $object_file
${ARM_LD} -static -nodefaultlibs -nostdlib -T $ldscript \
$object_file -o $nexe_file
+ rm $pre_file $object_file
done

Powered by Google App Engine
This is Rietveld 408576698