If the 'asan' GYP variable is set to 1 on Mac, do not strip the __asan_init symbol from the binaries.

Review URL: http://codereview.chromium.org/7828043

git-svn-id: http://src.chromium.org/svn/trunk/src/build@99371 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
glider@chromium.org 2011-09-02 15:34:00 +00:00
Родитель b2b175e465
Коммит ddbba0674f
2 изменённых файлов: 19 добавлений и 0 удалений

9
asan.saves Normal file
Просмотреть файл

@ -0,0 +1,9 @@
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This file lists symbols that should not be stripped by Xcode from the binaries
# built for Mac OS X using AddressSanitizer
# (http://dev.chromium.org/developers/testing/addresssanitizer).
___asan_init

Просмотреть файл

@ -1736,6 +1736,16 @@
], ],
}, },
], ],
'conditions': [
['asan==1', {
'variables': {
'asan_saves_file': 'asan.saves',
},
'xcode_settings': {
'CHROMIUM_STRIP_SAVE_FILE': '<(asan_saves_file)'
},
}],
],
}], }],
['_type=="executable" and release_valgrind_build==0', { ['_type=="executable" and release_valgrind_build==0', {
# Turn on position-independence (ASLR) for executables. When PIE # Turn on position-independence (ASLR) for executables. When PIE