| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 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 # IMPORTANT NOTE: If you make local mods to this file, you must run: | 6 # IMPORTANT NOTE: If you make local mods to this file, you must run: |
| 7 # % pnacl/build.sh driver | 7 # % pnacl/build.sh driver |
| 8 # in order for them to take effect in the scons build. This command | 8 # in order for them to take effect in the scons build. This command |
| 9 # updates the copy in the toolchain/ tree. | 9 # updates the copy in the toolchain/ tree. |
| 10 # | 10 # |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 'LIBS_X8664' : '${BASE_GLIBC}/lib-x86-64', | 94 'LIBS_X8664' : '${BASE_GLIBC}/lib-x86-64', |
| 95 'LIBS_MIPS32' : '${BASE_GLIBC}/lib-mips32', | 95 'LIBS_MIPS32' : '${BASE_GLIBC}/lib-mips32', |
| 96 # HACK-END | 96 # HACK-END |
| 97 | 97 |
| 98 'LD_GOLD_OFORMAT' : '${LD_GOLD_OFORMAT_%ARCH%}', | 98 'LD_GOLD_OFORMAT' : '${LD_GOLD_OFORMAT_%ARCH%}', |
| 99 'LD_GOLD_OFORMAT_ARM' : 'elf32-littlearm', | 99 'LD_GOLD_OFORMAT_ARM' : 'elf32-littlearm', |
| 100 'LD_GOLD_OFORMAT_X8632' : 'elf32-i386-nacl', | 100 'LD_GOLD_OFORMAT_X8632' : 'elf32-i386-nacl', |
| 101 'LD_GOLD_OFORMAT_X8664' : 'elf64-x86-64-nacl', | 101 'LD_GOLD_OFORMAT_X8664' : 'elf64-x86-64-nacl', |
| 102 'LD_GOLD_OFORMAT_MIPS32' : 'elf32-tradlittlemips', | 102 'LD_GOLD_OFORMAT_MIPS32' : 'elf32-tradlittlemips', |
| 103 | 103 |
| 104 'BCLD' : '${LD_GOLD}', | 104 'BCLD' : '${LD_GOLD}', |
| 105 'BCLD_FLAGS': '--oformat ${LD_GOLD_OFORMAT} -Ttext=0x20000 ' + | 105 'BCLD_ALLOW_UNRESOLVED' : |
| 106 '${!SHARED && !RELOCATABLE ? --undef-sym-check} ' + | 106 '${ALLOW_CXX_EXCEPTIONS ? ' |
| 107 '${GOLD_PLUGIN_ARGS} ${LD_FLAGS}', | 107 '--allow-unresolved=_Unwind_Backtrace ' |
| 108 '--allow-unresolved=_Unwind_DeleteException ' |
| 109 '--allow-unresolved=_Unwind_GetCFA ' |
| 110 '--allow-unresolved=_Unwind_GetDataRelBase ' |
| 111 '--allow-unresolved=_Unwind_GetIP ' |
| 112 '--allow-unresolved=_Unwind_GetIPInfo ' |
| 113 '--allow-unresolved=_Unwind_GetLanguageSpecificData ' |
| 114 '--allow-unresolved=_Unwind_GetRegionStart ' |
| 115 '--allow-unresolved=_Unwind_GetTextRelBase ' |
| 116 '--allow-unresolved=_Unwind_PNaClSetResult0 ' |
| 117 '--allow-unresolved=_Unwind_PNaClSetResult1 ' |
| 118 '--allow-unresolved=_Unwind_RaiseException ' |
| 119 '--allow-unresolved=_Unwind_Resume ' |
| 120 '--allow-unresolved=_Unwind_Resume_or_Rethrow ' |
| 121 '--allow-unresolved=_Unwind_SetIP}', |
| 122 |
| 123 'BCLD_FLAGS': |
| 124 '--oformat ${LD_GOLD_OFORMAT} -Ttext=0x20000 ' + |
| 125 '${!SHARED && !RELOCATABLE ? --undef-sym-check ${BCLD_ALLOW_UNRESOLVED}} ' + |
| 126 '${GOLD_PLUGIN_ARGS} ${LD_FLAGS}', |
| 108 'RUN_BCLD': ('${BCLD} ${BCLD_FLAGS} ${inputs} -o ${output}'), | 127 'RUN_BCLD': ('${BCLD} ${BCLD_FLAGS} ${inputs} -o ${output}'), |
| 109 | 128 |
| 110 'ALLOW_CXX_EXCEPTIONS': '0', | 129 'ALLOW_CXX_EXCEPTIONS': '0', |
| 111 'DISABLE_ABI_CHECK': '0', | 130 'DISABLE_ABI_CHECK': '0', |
| 112 'LLVM_PASSES_TO_DISABLE': '', | 131 'LLVM_PASSES_TO_DISABLE': '', |
| 113 } | 132 } |
| 114 | 133 |
| 115 def AddToBCLinkFlags(*args): | 134 def AddToBCLinkFlags(*args): |
| 116 env.append('LD_FLAGS', *args) | 135 env.append('LD_FLAGS', *args) |
| 117 | 136 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 -O<opt-level> Optimize output file | 561 -O<opt-level> Optimize output file |
| 543 -M, --print-map Print map file on standard output | 562 -M, --print-map Print map file on standard output |
| 544 --whole-archive Include all objects from following archives | 563 --whole-archive Include all objects from following archives |
| 545 --no-whole-archive Turn off --whole-archive | 564 --no-whole-archive Turn off --whole-archive |
| 546 -s, --strip-all Strip all symbols | 565 -s, --strip-all Strip all symbols |
| 547 -S, --strip-debug Strip debugging symbols | 566 -S, --strip-debug Strip debugging symbols |
| 548 --undefined SYMBOL Start with undefined reference to SYMBOL | 567 --undefined SYMBOL Start with undefined reference to SYMBOL |
| 549 | 568 |
| 550 -help | -h Output this help. | 569 -help | -h Output this help. |
| 551 """ | 570 """ |
| OLD | NEW |