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

Side by Side Diff: pnacl/driver/pnacl-ld.py

Issue 14780006: Remove _Unwind_* stubs from pnacl_abi.bc (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 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
« no previous file with comments | « no previous file | pnacl/support/bitcode/pnacl_abi.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 'FINAL_BCLD_LINK_FLAGS' :
105 '${!SHARED && !RELOCATABLE ? --undef-sym-check} ' + 105 '--undef-sym-check --allow-unresolved=_Unwind_DeleteException ' +
jvoung (off chromium) 2013/05/07 18:11:55 keep one exception per line so that they are easie
Mark Seaborn 2013/05/07 18:16:06 Also, you can omit the "+": Python does C-style st
eliben 2013/05/07 18:55:04 Done.
eliben 2013/05/07 18:55:04 Done, although it was consistent with the surround
106 '${GOLD_PLUGIN_ARGS} ${LD_FLAGS}', 106 '--allow-unresolved=_Unwind_GetIP --allow-unresolved=_Unwind_GetIPInfo ' +
107 '--allow-unresolved=_Unwind_Resume --allow-unresolved=_Unwind_GetCFA ' +
108 '--allow-unresolved=_Unwind_Backtrace --allow-unresolved=_Unwind_SetIP ' +
109 '--allow-unresolved=_Unwind_GetRegionStart ' +
110 '--allow-unresolved=_Unwind_GetDataRelBase ' +
111 '--allow-unresolved=_Unwind_GetTextRelBase ' +
112 '--allow-unresolved=_Unwind_GetLanguageSpecificData ' +
113 '--allow-unresolved=_Unwind_PNaClSetResult0 ' +
114 '--allow-unresolved=_Unwind_PNaClSetResult1 ' +
115 '--allow-unresolved=_Unwind_RaiseException ' +
116 '--allow-unresolved=_Unwind_Resume_or_Rethrow ',
117
118 'BCLD_FLAGS':
119 '--oformat ${LD_GOLD_OFORMAT} -Ttext=0x20000 ' +
120 '${!SHARED && !RELOCATABLE ? ${FINAL_BCLD_LINK_FLAGS}} ' +
121 '${GOLD_PLUGIN_ARGS} ${LD_FLAGS}',
107 'RUN_BCLD': ('${BCLD} ${BCLD_FLAGS} ${inputs} -o ${output}'), 122 'RUN_BCLD': ('${BCLD} ${BCLD_FLAGS} ${inputs} -o ${output}'),
108 123
109 'ALLOW_CXX_EXCEPTIONS': '0', 124 'ALLOW_CXX_EXCEPTIONS': '0',
110 'DISABLE_ABI_CHECK': '0', 125 'DISABLE_ABI_CHECK': '0',
111 'LLVM_PASSES_TO_DISABLE': '', 126 'LLVM_PASSES_TO_DISABLE': '',
112 } 127 }
113 128
114 def AddToBCLinkFlags(*args): 129 def AddToBCLinkFlags(*args):
115 env.append('LD_FLAGS', *args) 130 env.append('LD_FLAGS', *args)
116 131
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 -O<opt-level> Optimize output file 562 -O<opt-level> Optimize output file
548 -M, --print-map Print map file on standard output 563 -M, --print-map Print map file on standard output
549 --whole-archive Include all objects from following archives 564 --whole-archive Include all objects from following archives
550 --no-whole-archive Turn off --whole-archive 565 --no-whole-archive Turn off --whole-archive
551 -s, --strip-all Strip all symbols 566 -s, --strip-all Strip all symbols
552 -S, --strip-debug Strip debugging symbols 567 -S, --strip-debug Strip debugging symbols
553 --undefined SYMBOL Start with undefined reference to SYMBOL 568 --undefined SYMBOL Start with undefined reference to SYMBOL
554 569
555 -help | -h Output this help. 570 -help | -h Output this help.
556 """ 571 """
OLDNEW
« no previous file with comments | « no previous file | pnacl/support/bitcode/pnacl_abi.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698