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

Side by Side Diff: chrome/chrome_exe.gypi

Issue 6973032: linux: enable PIE (ASLR) for chrome executable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typoi Created 9 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 | 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 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 'chrome_exe_target': 0, 8 'chrome_exe_target': 0,
9 }, 9 },
10 'target_conditions': [ 10 'target_conditions': [
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 'message': 'Generating manpage' 187 'message': 'Generating manpage'
188 }, 188 },
189 ], 189 ],
190 'conditions': [ 190 'conditions': [
191 ['linux_use_tcmalloc==1', { 191 ['linux_use_tcmalloc==1', {
192 'dependencies': [ 192 'dependencies': [
193 '<(allocator_target)', 193 '<(allocator_target)',
194 ], 194 ],
195 }, 195 },
196 ], 196 ],
197 # TODO(rkc): Remove this once we have a fix for remote gdb 197 # TODO(rkc): Remove disable_pie (and instead always use
198 # and are able to correctly get section header offsets for 198 # -pie) once we have a fix for remote gdb and are able to
199 # pie executables. Currently -pie breaks remote debugging. 199 # correctly get section header offsets for pie
200 # executables. Currently -pie breaks remote debugging.
200 ['disable_pie==1', { 201 ['disable_pie==1', {
201 'ldflags' : ['-nopie'], 202 'ldflags': ['-nopie'],
203 }, {
204 # Building with -fPIE fails on ARM and ia32 bots.
205 # http://code.google.com/p/chromium/issues/detail?id=57908
206 # Until that is fixed, at least use it on other platforms.
207 'conditions': [
208 ['target_arch!="arm" and target_arch!="ia32"', {
209 'ldflags': ['-pie'],
210 }],
211 ],
202 }], 212 }],
203 ['use_system_xdg_utils==0', { 213 ['use_system_xdg_utils==0', {
204 'copies': [ 214 'copies': [
205 { 215 {
206 'destination': '<(PRODUCT_DIR)', 216 'destination': '<(PRODUCT_DIR)',
207 'files': ['tools/build/linux/chrome-wrapper', 217 'files': ['tools/build/linux/chrome-wrapper',
208 '../third_party/xdg-utils/scripts/xdg-mime', 218 '../third_party/xdg-utils/scripts/xdg-mime',
209 '../third_party/xdg-utils/scripts/xdg-settings', 219 '../third_party/xdg-utils/scripts/xdg-settings',
210 ], 220 ],
211 # The wrapper script above may need to generate a .desktop 221 # The wrapper script above may need to generate a .desktop
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 'configurations': { 538 'configurations': {
529 'Common_Base': { 539 'Common_Base': {
530 'msvs_target_platform': 'x64', 540 'msvs_target_platform': 'x64',
531 }, 541 },
532 }, 542 },
533 }, 543 },
534 ], 544 ],
535 }], 545 }],
536 ], 546 ],
537 } 547 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698