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

Side by Side Diff: src/trusted/validator_mips/testdata/compile_tests.sh

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Minor style changes. Created 8 years, 7 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
OLDNEW
(Empty)
1 #!/bin/bash
2 # Copyright 2012 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file.
5
6 set -eu
7
8 # Get the path to the Mips cross-compiler.
9
10 dir=$(pwd)
11 cd ../../../..
12 topdir=$(pwd)
13 tools="$topdir/toolchain/pnacl_linux_x86_64/pkg/binutils/mipsel-pc-nacl/bin"
14 cd $dir
15
16 readonly MIPSEL_LD="$tools/ld"
17 readonly MIPSEL_AS="$tools/as"
18
19
20 for test_file in *.S ; do
21 object_file=${test_file%.*}.o
22 mipsel_nexe_file=${test_file%.*}.nexe
23 special_link_options="--section-start .text=0xFFFA000"
24
25 echo "compiling (MIPS32) $test_file -> $mipsel_nexe_file"
26 ${MIPSEL_AS} -mips32r2 -EL -mdsp\
27 $test_file -o $object_file
28 if [ $test_file == "test_invalid_dest.S" ]
29 then
30 ${MIPSEL_LD} $special_link_options -static -nodefaultlibs -nostdlib \
31 -m elf32ltsmip_nacl $object_file -o $mipsel_nexe_file
32 else
33 ${MIPSEL_LD} -static -nodefaultlibs -nostdlib \
34 -m elf32ltsmip_nacl $object_file -o $mipsel_nexe_file
35 fi
36 rm $object_file
37 done
38
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698