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

Side by Side Diff: tools/ld_bfd/ld

Issue 7655010: Reserve 1GB at the base of the address space of linux nacl_helper for Native Client module. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « chrome/nacl/nacl_helper_linux.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2011 The Chromium 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 """Wrapper for invoking the BFD loader 6 """Wrapper for invoking the BFD loader
7 7
8 A simple script to invoke the bfd loader instead of gold, removing 8 A simple script to invoke the bfd loader instead of gold, removing
9 threading command line options that the bfd loader doesn't support. 9 threading command line options that the bfd loader doesn't support.
10 Because this script is invoked from gcc via the -B flag, it needs 10 Because this script is invoked from gcc via the -B flag, it needs
(...skipping 16 matching lines...) Expand all
27 print "ld_bfd/ld: using ld" 27 print "ld_bfd/ld: using ld"
28 sys.exit(subprocess.call(args)) 28 sys.exit(subprocess.call(args))
29 # found the BFD loader, so use it 29 # found the BFD loader, so use it
30 args = list() 30 args = list()
31 args.append("/usr/bin/ld.bfd") 31 args.append("/usr/bin/ld.bfd")
32 for arg in sys.argv[1:]: 32 for arg in sys.argv[1:]:
33 if arg == "-Wl,--threads" or arg == "--threads": 33 if arg == "-Wl,--threads" or arg == "--threads":
34 continue 34 continue
35 if arg == "-Wl,--thread-count=4" or arg == "--thread-count=4": 35 if arg == "-Wl,--thread-count=4" or arg == "--thread-count=4":
36 continue 36 continue
37 if arg == "--icf=none":
38 continue
37 args.append(arg) 39 args.append(arg)
38 print("ld_bfd/ld: exec ", args) 40 print("ld_bfd/ld: exec ", args)
39 sys.exit(subprocess.call(args)) 41 sys.exit(subprocess.call(args))
40 42
41 if __name__ == "__main__": 43 if __name__ == "__main__":
42 main() 44 main()
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_helper_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698