Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2011 The Native Client Authors. All rights reserved. | 1 # Copyright 2011 The Native Client Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can | 2 # Use of this source code is governed by a BSD-style license that can |
| 3 # be found in the LICENSE file. | 3 # be found in the LICENSE file. |
| 4 # | 4 # |
| 5 | 5 |
| 6 # simple example that tries to build a mostly sandboxed shared lib | 6 # simple example that tries to build a mostly sandboxed shared lib |
| 7 # which is then loaded by a regular (non-sandboxed) images | 7 # which is then loaded by a regular (non-sandboxed) images |
| 8 | 8 |
| 9 PNACL_CC=../../toolchain/linux_arm-untrusted/bin/pnacl-gcc | 9 PNACL_CC=../../toolchain/pnacl_linux_x86_64/bin/pnacl-gcc |
| 10 PNACL_LD=../../toolchain/linux_arm-untrusted/bin/pnacl-ld | 10 PNACL_LD=../../toolchain/pnacl_linux_x86_64/bin/pnacl-ld |
|
jasonwkim
2011/04/12 00:19:46
Here too
| |
| 11 ELF_PATCHER=../../tools/elf_patcher.py | 11 ELF_PATCHER=../../tools/elf_patcher.py |
| 12 | 12 |
| 13 ARM_CC=../../toolchain/linux_arm-trusted/arm-2009q3/bin/arm-none-linux-gnueabi-g cc | 13 ARM_CC=../../toolchain/linux_arm-trusted/arm-2009q3/bin/arm-none-linux-gnueabi-g cc |
| 14 QEMU= ../../toolchain/linux_arm-trusted/qemu_tool.sh run | 14 QEMU= ../../toolchain/linux_arm-trusted/qemu_tool.sh run |
| 15 | 15 |
| 16 NCVAL_X86_32=../../scons-out/opt-linux-x86-32/staging/ncval | 16 NCVAL_X86_32=../../scons-out/opt-linux-x86-32/staging/ncval |
| 17 NCVAL_ARM=../../scons-out/opt-linux-x86-64-to-arm/staging/arm-ncval-core | 17 NCVAL_ARM=../../scons-out/opt-linux-x86-64-to-arm/staging/arm-ncval-core |
| 18 #DEBUG_FLAGS= --pnacl-driver-verbose --pnacl-driver-debug | 18 #DEBUG_FLAGS= --pnacl-driver-verbose --pnacl-driver-debug |
| 19 DEBUG_FLAGS= | 19 DEBUG_FLAGS= |
| 20 | 20 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 $(ARM_CC) -Wl,-Ttext-segment=20000 -o $@ -L. -lsimple.arm main.c | 66 $(ARM_CC) -Wl,-Ttext-segment=20000 -o $@ -L. -lsimple.arm main.c |
| 67 | 67 |
| 68 run.arm: main.arm | 68 run.arm: main.arm |
| 69 LD_LIBRARY_PATH=. $(QEMU) ./main.arm | 69 LD_LIBRARY_PATH=. $(QEMU) ./main.arm |
| 70 | 70 |
| 71 ###################################################################### | 71 ###################################################################### |
| 72 | 72 |
| 73 clean: | 73 clean: |
| 74 rm -f *.bc *.o *.ll *.so main | 74 rm -f *.bc *.o *.ll *.so main |
| 75 | 75 |
| OLD | NEW |