Chromium Code Reviews| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 93 'LIBS_X8664' : '${BASE_GLIBC}/lib-x86-64', | 93 'LIBS_X8664' : '${BASE_GLIBC}/lib-x86-64', |
| 94 'LIBS_MIPS32' : '${BASE_GLIBC}/lib-mips32', | 94 'LIBS_MIPS32' : '${BASE_GLIBC}/lib-mips32', |
| 95 # HACK-END | 95 # HACK-END |
| 96 | 96 |
| 97 'LD_GOLD_OFORMAT' : '${LD_GOLD_OFORMAT_%ARCH%}', | 97 'LD_GOLD_OFORMAT' : '${LD_GOLD_OFORMAT_%ARCH%}', |
| 98 'LD_GOLD_OFORMAT_ARM' : 'elf32-littlearm', | 98 'LD_GOLD_OFORMAT_ARM' : 'elf32-littlearm', |
| 99 'LD_GOLD_OFORMAT_X8632' : 'elf32-i386-nacl', | 99 'LD_GOLD_OFORMAT_X8632' : 'elf32-i386-nacl', |
| 100 'LD_GOLD_OFORMAT_X8664' : 'elf64-x86-64-nacl', | 100 'LD_GOLD_OFORMAT_X8664' : 'elf64-x86-64-nacl', |
| 101 'LD_GOLD_OFORMAT_MIPS32' : 'elf32-tradlittlemips', | 101 'LD_GOLD_OFORMAT_MIPS32' : 'elf32-tradlittlemips', |
| 102 | 102 |
| 103 'BCLD' : '${LD_GOLD}', | 103 'BCLD' : '${LD_GOLD}', |
| 104 'BCLD_FLAGS': '--oformat ${LD_GOLD_OFORMAT} -Ttext=0x20000 ' + | 104 'BCLD_ALLOW_UNRESOLVED' : |
| 105 '${!SHARED && !RELOCATABLE ? --undef-sym-check} ' + | 105 '{ALLOW_CXX_EXCEPTIONS ? ' |
|
Mark Seaborn
2013/05/07 19:59:05
Does there need to be a "$" here for this to work?
eliben
2013/05/07 21:03:14
Good catch, thanks. I'm wondering why this hasn't
| |
| 106 '${GOLD_PLUGIN_ARGS} ${LD_FLAGS}', | 106 '--allow-unresolved=_Unwind_DeleteException ' |
|
Mark Seaborn
2013/05/07 19:59:05
Maybe sort the list?
eliben
2013/05/07 21:03:14
Will do
| |
| 107 '--allow-unresolved=_Unwind_GetIP ' | |
| 108 '--allow-unresolved=_Unwind_GetIPInfo ' | |
| 109 '--allow-unresolved=_Unwind_Resume ' | |
| 110 '--allow-unresolved=_Unwind_GetCFA ' | |
| 111 '--allow-unresolved=_Unwind_Backtrace ' | |
| 112 '--allow-unresolved=_Unwind_SetIP ' | |
| 113 '--allow-unresolved=_Unwind_GetRegionStart ' | |
| 114 '--allow-unresolved=_Unwind_GetDataRelBase ' | |
| 115 '--allow-unresolved=_Unwind_GetTextRelBase ' | |
| 116 '--allow-unresolved=_Unwind_GetLanguageSpecificData ' | |
| 117 '--allow-unresolved=_Unwind_PNaClSetResult0 ' | |
| 118 '--allow-unresolved=_Unwind_PNaClSetResult1 ' | |
| 119 '--allow-unresolved=_Unwind_RaiseException ' | |
| 120 '--allow-unresolved=_Unwind_Resume_or_Rethrow}', | |
| 121 | |
| 122 'BCLD_FLAGS': | |
| 123 '--oformat ${LD_GOLD_OFORMAT} -Ttext=0x20000 ' + | |
| 124 '${!SHARED && !RELOCATABLE ? --undef-sym-check ${BCLD_ALLOW_UNRESOLVED}} ' + | |
| 125 '${GOLD_PLUGIN_ARGS} ${LD_FLAGS}', | |
| 107 'RUN_BCLD': ('${BCLD} ${BCLD_FLAGS} ${inputs} -o ${output}'), | 126 'RUN_BCLD': ('${BCLD} ${BCLD_FLAGS} ${inputs} -o ${output}'), |
| 108 | 127 |
| 109 'ALLOW_CXX_EXCEPTIONS': '0', | 128 'ALLOW_CXX_EXCEPTIONS': '0', |
| 110 'DISABLE_ABI_CHECK': '0', | 129 'DISABLE_ABI_CHECK': '0', |
| 111 'LLVM_PASSES_TO_DISABLE': '', | 130 'LLVM_PASSES_TO_DISABLE': '', |
| 112 } | 131 } |
| 113 | 132 |
| 114 def AddToBCLinkFlags(*args): | 133 def AddToBCLinkFlags(*args): |
| 115 env.append('LD_FLAGS', *args) | 134 env.append('LD_FLAGS', *args) |
| 116 | 135 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 547 -O<opt-level> Optimize output file | 566 -O<opt-level> Optimize output file |
| 548 -M, --print-map Print map file on standard output | 567 -M, --print-map Print map file on standard output |
| 549 --whole-archive Include all objects from following archives | 568 --whole-archive Include all objects from following archives |
| 550 --no-whole-archive Turn off --whole-archive | 569 --no-whole-archive Turn off --whole-archive |
| 551 -s, --strip-all Strip all symbols | 570 -s, --strip-all Strip all symbols |
| 552 -S, --strip-debug Strip debugging symbols | 571 -S, --strip-debug Strip debugging symbols |
| 553 --undefined SYMBOL Start with undefined reference to SYMBOL | 572 --undefined SYMBOL Start with undefined reference to SYMBOL |
| 554 | 573 |
| 555 -help | -h Output this help. | 574 -help | -h Output this help. |
| 556 """ | 575 """ |
| OLD | NEW |