• Home
  • Raw
  • Download

Lines Matching refs:flags

252 func (binary *binaryDecorator) linkerFlags(ctx ModuleContext, flags Flags) Flags {
253 flags = binary.baseLinker.linkerFlags(ctx, flags)
258 flags.Global.LdFlags = append(flags.Global.LdFlags, "-pie")
266 flags.Global.CFlags = append(flags.Global.CFlags, "-fPIE")
275 if !inList("-shared", flags.Local.LdFlags) {
276 flags.Global.LdFlags = append(flags.Global.LdFlags, "-static")
279 flags.Global.LdFlags = append(flags.Global.LdFlags,
285 if flags.DynamicLinker == "" {
287 flags.DynamicLinker = binary.Properties.DynamicLinker
292 flags.DynamicLinker = "/system/bin/bootstrap/linker"
294 flags.DynamicLinker = "/system/bin/linker"
296 if flags.Toolchain.Is64Bit() {
297 flags.DynamicLinker += "64"
300 flags.DynamicLinker = ""
309 flags.Global.LdFlags = append(flags.Global.LdFlags,
316 flags.Global.LdFlags = append(flags.Global.LdFlags,
326 flags.Global.LdFlags = append(flags.Global.LdFlags, "-static")
329 flags.Global.LdFlags = append(flags.Global.LdFlags, "-Wl,-headerpad_max_install_names")
333 return flags
340 flags Flags, deps PathDeps, objs Objects) android.Path {
342 fileName := binary.getStem(ctx) + flags.Toolchain.ExecutableSuffix()
350 flags.Local.LdFlags = append(flags.Local.LdFlags, "$$(cat "+deps.LinkerFlagsFile.String()+")")
354 if flags.DynamicLinker != "" {
355 flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,-dynamic-linker,"+flags.DynamicLinker)
357 flags.Local.LdFlags = append(flags.Local.LdFlags, "-Wl,--no-dynamic-linker")
360 builderFlags := flagsToBuilderFlags(flags)
361 stripFlags := flagsToStripFlags(flags)
428 linkerDeps = append(linkerDeps, flags.LdFlagsDeps...)