| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//fusl/fusl.gni") | 5 import("//fusl/fusl.gni") |
| 6 | 6 |
| 7 fusl_source_set("ldso") { | 7 fusl_source_set("ldso") { |
| 8 sources = [ | 8 sources = [ |
| 9 "__dlsym.c", |
| 9 "dl_iterate_phdr.c", | 10 "dl_iterate_phdr.c", |
| 10 "dladdr.c", | 11 "dladdr.c", |
| 12 "dlclose.c", |
| 13 "dlerror.c", |
| 11 "dlinfo.c", | 14 "dlinfo.c", |
| 15 "dlopen.c", |
| 12 ] | 16 ] |
| 13 | 17 |
| 14 if (current_cpu == "x64") { | 18 if (current_cpu == "x64") { |
| 15 sources += [ | 19 sources += [ |
| 16 "x86_64/dlsym.s", | 20 "x86_64/dlsym.s", |
| 17 "x86_64/tlsdesc.s", | 21 "x86_64/tlsdesc.s", |
| 18 ] | 22 ] |
| 19 } else { | 23 } else { |
| 20 sources += [ | 24 sources += [ |
| 21 "dlsym.c", | 25 "dlsym.c", |
| 22 "tlsdesc.c", | 26 "tlsdesc.c", |
| 23 ] | 27 ] |
| 24 } | 28 } |
| 25 | |
| 26 deps = [ | |
| 27 ":no_stack_protector", | |
| 28 ] | |
| 29 } | 29 } |
| 30 | |
| 31 fusl_source_set("no_stack_protector") { | |
| 32 configs = [ "//fusl:fusl_no_stack_protector_config" ] | |
| 33 | |
| 34 sources = [ | |
| 35 "dlstart.c", | |
| 36 "dynlink.c", | |
| 37 ] | |
| 38 } | |
| OLD | NEW |