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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 set -eu 6 set -eu
7 7
8 # Get the path to the ARM cross-compiler. 8 # Get the path to the ARM cross-compiler.
9 # We use the trusted compiler because llvm-fake.py (used in the
10 # untrusted compiler) doesn't support -nodefaultlibs.
11 dir=$(pwd) 9 dir=$(pwd)
12 cd ../../../.. 10 cd ../../../..
13 eval "$(tools/llvm/setup_arm_trusted_toolchain.py)"
14 topdir=$(pwd) 11 topdir=$(pwd)
12 tools="$topdir/toolchain/pnacl_linux_x86_64_newlib/pkg/binutils/bin"
15 cd $dir 13 cd $dir
16 14
17 ldscript=$topdir/toolchain/pnacl_linux_x86_64/ldscripts/ld_script_arm_untrusted 15 ldscript=$topdir/tools/llvm/ld_script_arm_untrusted
16 readonly ARM_LD="$tools/arm-pc-nacl-ld"
17 readonly ARM_AS="$tools/arm-pc-nacl-as"
18 18
19 readonly ARM_CROSS_COMPILER="${ARM_CC}"
20 for test_file in *.S ; do 19 for test_file in *.S ; do
21 object_file=${test_file%.*}.o 20 object_file=${test_file%.*}.o
22 nexe_file=${test_file%.*}.nexe 21 nexe_file=${test_file%.*}.nexe
22 pre_file=${test_file%.*}.s
23 23
24 echo "compiling $test_file -> $nexe_file" 24 echo "compiling $test_file -> $nexe_file"
25 ${ARM_CROSS_COMPILER} \ 25 cpp $test_file -o $pre_file
26 -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -c $test_file -o $object_file 26 ${ARM_AS} -march=armv7-a -mcpu=cortex-a8 -mfpu=neon -c $pre_file \
27 -o $object_file
27 ${ARM_LD} -static -nodefaultlibs -nostdlib -T $ldscript \ 28 ${ARM_LD} -static -nodefaultlibs -nostdlib -T $ldscript \
28 $object_file -o $nexe_file 29 $object_file -o $nexe_file
30 rm $pre_file $object_file
29 done 31 done
OLDNEW
« no previous file with comments | « src/trusted/validator_arm/inst_classes.cc ('k') | src/trusted/validator_arm/testdata/test_external_jumps.nexe » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698