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

Side by Side Diff: pnacl/build.sh

Issue 269703002: Non-SFI Mode: Add nonsfi_loader and plumbing to test it (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Review Created 6 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 | Annotate | Revision Log
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2012 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 #@ PNaCl toolchain build script 6 #@ PNaCl toolchain build script
7 #@------------------------------------------------------------------- 7 #@-------------------------------------------------------------------
8 #@ This script builds the ARM and PNaCl untrusted toolchains. 8 #@ This script builds the ARM and PNaCl untrusted toolchains.
9 #@ It MUST be run from the native_client/ directory. 9 #@ It MUST be run from the native_client/ directory.
10 ###################################################################### 10 ######################################################################
(...skipping 2450 matching lines...) Expand 10 before | Expand all | Expand 10 after
2461 ${PNACL_AR} rc "${destdir}"/libcrt_platform.a "${tmpdir}"/*.o 2461 ${PNACL_AR} rc "${destdir}"/libcrt_platform.a "${tmpdir}"/*.o
2462 } 2462 }
2463 2463
2464 libs-support-unsandboxed() { 2464 libs-support-unsandboxed() {
2465 if ${BUILD_PLATFORM_LINUX} || ${BUILD_PLATFORM_MAC}; then 2465 if ${BUILD_PLATFORM_LINUX} || ${BUILD_PLATFORM_MAC}; then
2466 local arch="x86-32-${BUILD_PLATFORM}" 2466 local arch="x86-32-${BUILD_PLATFORM}"
2467 StepBanner "LIBS-SUPPORT (${arch})" "Install unsandboxed_irt.o" 2467 StepBanner "LIBS-SUPPORT (${arch})" "Install unsandboxed_irt.o"
2468 local destdir="${INSTALL_LIB_NATIVE}"${arch} 2468 local destdir="${INSTALL_LIB_NATIVE}"${arch}
2469 mkdir -p ${destdir} 2469 mkdir -p ${destdir}
2470 # The NaCl headers insist on having a platform macro such as 2470 # The NaCl headers insist on having a platform macro such as
2471 # NACL_LINUX defined, but unsandboxed_irt.c does not itself use 2471 # NACL_LINUX defined, but nonsfi/irt/irt_interfaces.c does not
2472 # any of these macros, so defining NACL_LINUX here even on 2472 # itself use any of these macros, so defining NACL_LINUX here even
2473 # non-Linux systems is OK. 2473 # on non-Linux systems is OK.
2474 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -DNACL_LINUX=1 -c \ 2474 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \
2475 ${PNACL_SUPPORT}/unsandboxed_irt.c -o ${destdir}/unsandboxed_irt.o 2475 -DNACL_LINUX=1 -DDEFINE_MAIN \
2476 ${NACL_ROOT}/src/nonsfi/irt/irt_interfaces.c \
2477 -o ${destdir}/unsandboxed_irt.o
2476 fi 2478 fi
2477 } 2479 }
2478 2480
2479 2481
2480 # Build the dummy "libpnacl_irt_shim.a", which is useful for building 2482 # Build the dummy "libpnacl_irt_shim.a", which is useful for building
2481 # commandline programs. It cannot be used to build PPAPI programs 2483 # commandline programs. It cannot be used to build PPAPI programs
2482 # because it does not actually shim the PPAPI interfaces. 2484 # because it does not actually shim the PPAPI interfaces.
2483 # The library is named the same as the real PPAPI shim to ensure that 2485 # The library is named the same as the real PPAPI shim to ensure that
2484 # the commandlines are the same. 2486 # the commandlines are the same.
2485 # This must be built after newlib(), since it uses headers like <stdint.h>. 2487 # This must be built after newlib(), since it uses headers like <stdint.h>.
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after
3349 3351
3350 if [ "$(type -t $1)" != "function" ]; then 3352 if [ "$(type -t $1)" != "function" ]; then
3351 #Usage 3353 #Usage
3352 echo "ERROR: unknown function '$1'." >&2 3354 echo "ERROR: unknown function '$1'." >&2
3353 echo "For help, try:" 3355 echo "For help, try:"
3354 echo " $0 help" 3356 echo " $0 help"
3355 exit 1 3357 exit 1
3356 fi 3358 fi
3357 3359
3358 "$@" 3360 "$@"
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698