Lines Matching refs:linker

233 func (linker *baseLinker) appendLdflags(flags []string) {
234 linker.Properties.Ldflags = append(linker.Properties.Ldflags, flags...)
238 func (linker *baseLinker) linkerInit(ctx BaseModuleContext) {
240 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "../lib64", "lib64")
242 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "../lib", "lib")
246 func (linker *baseLinker) linkerProps() []interface{} {
247 return []interface{}{&linker.Properties, &linker.dynamicProperties}
250 func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
251 deps.WholeStaticLibs = append(deps.WholeStaticLibs, linker.Properties.Whole_static_libs...)
252 deps.HeaderLibs = append(deps.HeaderLibs, linker.Properties.Header_libs...)
253 deps.StaticLibs = append(deps.StaticLibs, linker.Properties.Static_libs...)
254 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Shared_libs...)
255 deps.RuntimeLibs = append(deps.RuntimeLibs, linker.Properties.Runtime_libs...)
257 …deps.ReexportHeaderLibHeaders = append(deps.ReexportHeaderLibHeaders, linker.Properties.Export_hea…
258 …deps.ReexportStaticLibHeaders = append(deps.ReexportStaticLibHeaders, linker.Properties.Export_sta…
259 …deps.ReexportSharedLibHeaders = append(deps.ReexportSharedLibHeaders, linker.Properties.Export_sha…
260 …deps.ReexportGeneratedHeaders = append(deps.ReexportGeneratedHeaders, linker.Properties.Export_gen…
262 deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Exclude_shared_libs)
263 deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Exclude_static_libs)
264 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Exclude_static_l…
265 deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Exclude_runtime_libs)
274 …deps.ExcludeLibsForApex = append(deps.ExcludeLibsForApex, linker.Properties.Target.Apex.Exclude_sh…
275 …deps.ExcludeLibsForApex = append(deps.ExcludeLibsForApex, linker.Properties.Target.Apex.Exclude_st…
277 if Bool(linker.Properties.Use_version_lib) {
282 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Vendor.Shared_libs...)
283 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Vendor.Exclude_shar…
284 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
285 deps.StaticLibs = append(deps.StaticLibs, linker.Properties.Target.Vendor.Static_libs...)
286 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Vendor.Exclude_stat…
287 …deps.HeaderLibs = removeListFromList(deps.HeaderLibs, linker.Properties.Target.Vendor.Exclude_head…
288 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
289 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Vendor.Ex…
290 …deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Target.Vendor.Exclude_ru…
294 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Product.Shared_libs...)
295 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Product.Exclude_sha…
296 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
297 deps.StaticLibs = append(deps.StaticLibs, linker.Properties.Target.Product.Static_libs...)
298 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Product.Exclude_sta…
299 …deps.HeaderLibs = removeListFromList(deps.HeaderLibs, linker.Properties.Target.Product.Exclude_hea…
300 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
301 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Product.E…
302 …deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Target.Product.Exclude_r…
306 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Recovery.Shared_libs...)
307 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Recovery.Exclude_sh…
308 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
309 deps.StaticLibs = append(deps.StaticLibs, linker.Properties.Target.Recovery.Static_libs...)
310 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Recovery.Exclude_st…
311 …deps.HeaderLibs = removeListFromList(deps.HeaderLibs, linker.Properties.Target.Recovery.Exclude_he…
312 …deps.ReexportHeaderLibHeaders = removeListFromList(deps.ReexportHeaderLibHeaders, linker.Propertie…
313 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
314 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Recovery.…
315 …deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Target.Recovery.Exclude_…
319 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Ramdisk.Exclude_sha…
320 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
321 deps.StaticLibs = append(deps.StaticLibs, linker.Properties.Target.Ramdisk.Static_libs...)
322 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Ramdisk.Exclude_sta…
323 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
324 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Ramdisk.E…
325 …deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Target.Ramdisk.Exclude_r…
329 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Vendor_ramdisk.Excl…
330 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
331 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Vendor_ramdisk.Excl…
332 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
333 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Vendor_ra…
334 …deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Target.Vendor_ramdisk.Ex…
338 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Platform.Shared_libs...)
343 if !Bool(linker.Properties.No_libcrt) && !ctx.header() {
347 deps.SystemSharedLibs = linker.Properties.System_shared_libs
398 func (linker *baseLinker) useClangLld(ctx ModuleContext) bool {
404 if linker.Properties.Use_clang_lld != nil {
405 return Bool(linker.Properties.Use_clang_lld)
429 func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
437 if linker.useClangLld(ctx) {
439 if !BoolDefault(linker.Properties.Pack_relocations, true) {
459 if Bool(linker.Properties.Allow_undefined_symbols) {
468 if linker.useClangLld(ctx) {
475 CheckBadHostLdlibs(ctx, "host_ldlibs", linker.Properties.Host_ldlibs)
477 flags.Local.LdFlags = append(flags.Local.LdFlags, linker.Properties.Host_ldlibs...)
501 CheckBadLinkerFlags(ctx, "ldflags", linker.Properties.Ldflags)
503 …flags.Local.LdFlags = append(flags.Local.LdFlags, proptools.NinjaAndShellEscapeList(linker.Propert…
512 for _, rpath := range linker.dynamicProperties.RunPaths {
527 if Bool(linker.Properties.Group_static_libs) {
533 if !linker.dynamicProperties.BuildStubs {
535 linker.Properties.Version_script, "version_script")
537 if ctx.inVendor() && linker.Properties.Target.Vendor.Version_script != nil {
539 linker.Properties.Target.Vendor.Version_script,
541 } else if ctx.inProduct() && linker.Properties.Target.Product.Version_script != nil {
543 linker.Properties.Target.Product.Version_script,
555 if linker.sanitize.isSanitizerEnabled(cfi) {
568 func (linker *baseLinker) link(ctx ModuleContext,
573 func (linker *baseLinker) linkerSpecifiedDeps(specifiedDeps specifiedDeps) specifiedDeps {
574 specifiedDeps.sharedLibs = append(specifiedDeps.sharedLibs, linker.Properties.Shared_libs...)
579 specifiedDeps.systemSharedLibs = linker.Properties.System_shared_libs
581 …specifiedDeps.systemSharedLibs = append(specifiedDeps.systemSharedLibs, linker.Properties.System_s…
603 func (linker *baseLinker) injectVersionSymbol(ctx ModuleContext, in android.Path, out android.Writa…
629 func (linker *baseLinker) sortBssSymbolsBySize(ctx ModuleContext, in android.Path, symbolOrderingFi…