Lines Matching refs:linker
173 func (linker *baseLinker) appendLdflags(flags []string) {
174 linker.Properties.Ldflags = append(linker.Properties.Ldflags, flags...)
177 func (linker *baseLinker) linkerInit(ctx BaseModuleContext) {
179 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "../lib64", "lib64")
181 linker.dynamicProperties.RunPaths = append(linker.dynamicProperties.RunPaths, "../lib", "lib")
185 func (linker *baseLinker) linkerProps() []interface{} {
186 return []interface{}{&linker.Properties, &linker.dynamicProperties}
189 func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
190 deps.WholeStaticLibs = append(deps.WholeStaticLibs, linker.Properties.Whole_static_libs...)
191 deps.HeaderLibs = append(deps.HeaderLibs, linker.Properties.Header_libs...)
192 deps.StaticLibs = append(deps.StaticLibs, linker.Properties.Static_libs...)
193 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Shared_libs...)
194 deps.RuntimeLibs = append(deps.RuntimeLibs, linker.Properties.Runtime_libs...)
196 …deps.ReexportHeaderLibHeaders = append(deps.ReexportHeaderLibHeaders, linker.Properties.Export_hea…
197 …deps.ReexportStaticLibHeaders = append(deps.ReexportStaticLibHeaders, linker.Properties.Export_sta…
198 …deps.ReexportSharedLibHeaders = append(deps.ReexportSharedLibHeaders, linker.Properties.Export_sha…
199 …deps.ReexportGeneratedHeaders = append(deps.ReexportGeneratedHeaders, linker.Properties.Export_gen…
201 if Bool(linker.Properties.Use_version_lib) {
206 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Vendor.Shared_libs...)
207 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Vendor.Exclude_shar…
208 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
209 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Vendor.Exclude_stat…
210 …deps.HeaderLibs = removeListFromList(deps.HeaderLibs, linker.Properties.Target.Vendor.Exclude_head…
211 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
212 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Vendor.Ex…
213 …deps.RuntimeLibs = removeListFromList(deps.RuntimeLibs, linker.Properties.Target.Vendor.Exclude_ru…
217 deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Recovery.Shared_libs...)
218 …deps.SharedLibs = removeListFromList(deps.SharedLibs, linker.Properties.Target.Recovery.Exclude_sh…
219 …deps.ReexportSharedLibHeaders = removeListFromList(deps.ReexportSharedLibHeaders, linker.Propertie…
220 …deps.StaticLibs = removeListFromList(deps.StaticLibs, linker.Properties.Target.Recovery.Exclude_st…
221 …deps.HeaderLibs = removeListFromList(deps.HeaderLibs, linker.Properties.Target.Recovery.Exclude_he…
222 …deps.ReexportHeaderLibHeaders = removeListFromList(deps.ReexportHeaderLibHeaders, linker.Propertie…
223 …deps.ReexportStaticLibHeaders = removeListFromList(deps.ReexportStaticLibHeaders, linker.Propertie…
224 …deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Recovery.…
229 if !Bool(linker.Properties.No_libcrt) {
233 } else if !Bool(linker.Properties.No_libgcc) {
238 systemSharedLibs := linker.Properties.System_shared_libs
298 func (linker *baseLinker) useClangLld(ctx ModuleContext) bool {
308 if linker.Properties.Use_clang_lld != nil {
309 return Bool(linker.Properties.Use_clang_lld)
333 func (linker *baseLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
341 if linker.useClangLld(ctx) {
343 if !BoolDefault(linker.Properties.Pack_relocations, true) {
356 if Bool(linker.Properties.Allow_undefined_symbols) {
365 if linker.useClangLld(ctx) {
372 CheckBadHostLdlibs(ctx, "host_ldlibs", linker.Properties.Host_ldlibs)
374 flags.LdFlags = append(flags.LdFlags, linker.Properties.Host_ldlibs...)
394 CheckBadLinkerFlags(ctx, "ldflags", linker.Properties.Ldflags)
396 …flags.LdFlags = append(flags.LdFlags, proptools.NinjaAndShellEscapeList(linker.Properties.Ldflags)…
405 for _, rpath := range linker.dynamicProperties.RunPaths {
421 if Bool(linker.Properties.Group_static_libs) {
427 if !linker.dynamicProperties.BuildStubs {
429 linker.Properties.Version_script, "version_script")
431 if ctx.useVndk() && linker.Properties.Target.Vendor.Version_script != nil {
433 linker.Properties.Target.Vendor.Version_script,
445 if linker.sanitize.isSanitizerEnabled(cfi) {
455 if !linker.dynamicProperties.BuildStubs {
457 linker.Properties.Symbol_ordering_file, "Symbol_ordering_file")
468 func (linker *baseLinker) link(ctx ModuleContext,
489 func (linker *baseLinker) injectVersionSymbol(ctx ModuleContext, in android.Path, out android.Writa…