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

Side by Side Diff: src/trusted/service_runtime/BUILD.gn

Issue 2049033004: Fix NaCl executable linkages under ASAN. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: add deps to sel_ldr, ncval_new as well Created 4 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
OLDNEW
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 The Native Client 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 import("//native_client/src/trusted/asm.gni") 5 import("//native_client/src/trusted/asm.gni")
6 6
7 source_set("sel_main") { 7 source_set("sel_main") {
8 sources = [ 8 sources = [
9 "sel_main.c", 9 "sel_main.c",
10 ] 10 ]
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 rebase_path(outputs, root_build_dir) 329 rebase_path(outputs, root_build_dir)
330 } 330 }
331 } 331 }
332 332
333 executable("sel_ldr") { 333 executable("sel_ldr") {
334 sources = [ 334 sources = [
335 "nacl_test_injection_main.c", 335 "nacl_test_injection_main.c",
336 ] 336 ]
337 deps = [ 337 deps = [
338 ":sel_main", 338 ":sel_main",
339
340 # All executables must have the sanitizer deps to properly link in
341 # asan mode (this target will be empty in other cases).
342 "//build/config/sanitizers:deps",
343
339 "//build/win:default_exe_manifest", 344 "//build/win:default_exe_manifest",
340 ] 345 ]
341 if (is_linux) { 346 if (is_linux) {
342 configs -= [ "//build/config:default_libs" ] 347 configs -= [ "//build/config:default_libs" ]
343 libs = [ "rt" ] 348 libs = [ "rt" ]
344 ldflags = [ "-pie" ] 349 ldflags = [ "-pie" ]
345 } 350 }
346 if (is_linux) { 351 if (is_linux) {
347 data_deps = [ 352 data_deps = [
348 "linux:bootstrap", 353 "linux:bootstrap",
349 ] 354 ]
350 } 355 }
351 } 356 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698