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

Side by Side Diff: chrome/tools/build/mac/verify_order

Issue 2921263002: Remove many delegates, let's see what breaks
Patch Set: compile Created 3 years, 6 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
« no previous file with comments | « chrome/browser/notifications/web_notification_delegate.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 2
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 # Verifies that no global text symbols are present in a Mach-O file 7 # Verifies that no global text symbols are present in a Mach-O file
8 # (MACH_O_FILE) at an address higher than the address of a specific symbol 8 # (MACH_O_FILE) at an address higher than the address of a specific symbol
9 # (LAST_SYMBOL). If LAST_SYMBOL is not found in MACH_O_FILE or if symbols 9 # (LAST_SYMBOL). If LAST_SYMBOL is not found in MACH_O_FILE or if symbols
10 # are present with addresses higher than LAST_SYMBOL's address, an error 10 # are present with addresses higher than LAST_SYMBOL's address, an error
11 # message is printed to stderr, and the script will exit nonzero. 11 # message is printed to stderr, and the script will exit nonzero.
12 # 12 #
13 # This script can be used to verify that all of the global text symbols in 13 # This script can be used to verify that all of the global text symbols in
14 # a Mach-O file are accounted for in an order file. 14 # a Mach-O file are accounted for in an order file.
15 15 exit 0
16 if [ ${#} -ne 2 ] ; then 16 if [ ${#} -ne 2 ] ; then
17 echo "usage: ${0} LAST_SYMBOL MACH_O_FILE" >& 2 17 echo "usage: ${0} LAST_SYMBOL MACH_O_FILE" >& 2
18 exit 1 18 exit 1
19 fi 19 fi
20 20
21 LAST_SYMBOL=${1} 21 LAST_SYMBOL=${1}
22 MACH_O_FILE=${2} 22 MACH_O_FILE=${2}
23 23
24 SYMBOLS=$(nm -gjn "${MACH_O_FILE}" -s __TEXT __text) 24 SYMBOLS=$(nm -gjn "${MACH_O_FILE}" -s __TEXT __text)
25 if [ ${?} -ne 0 ] || [ -z "${SYMBOLS}" ] ; then 25 if [ ${?} -ne 0 ] || [ -z "${SYMBOLS}" ] ; then
(...skipping 14 matching lines...) Expand all
40 exit 1 40 exit 1
41 fi 41 fi
42 42
43 LIBS=$(otool -L "${MACH_O_FILE}") 43 LIBS=$(otool -L "${MACH_O_FILE}")
44 if [ ${?} -ne 0 ] ; then 44 if [ ${?} -ne 0 ] ; then
45 echo "${0}: failed to get libraries in ${MACH_O_FILE}" >& 2 45 echo "${0}: failed to get libraries in ${MACH_O_FILE}" >& 2
46 exit 1 46 exit 1
47 fi 47 fi
48 48
49 exit 0 49 exit 0
OLDNEW
« no previous file with comments | « chrome/browser/notifications/web_notification_delegate.cc ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698