Remove sort_bss_symbols_by_size.
Its only use was removed in aosp/1717013. Bug: 187928080 Test: Presubmits. Change-Id: If6acbfe8ba21ec4dc34166768ba1bde3bb78123c
This commit is contained in:
25
cc/linker.go
25
cc/linker.go
@@ -594,28 +594,3 @@ func (linker *baseLinker) injectVersionSymbol(ctx ModuleContext, in android.Path
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// Rule to generate .bss symbol ordering file.
|
||||
|
||||
var (
|
||||
_ = pctx.SourcePathVariable("genSortedBssSymbolsPath", "build/soong/scripts/gen_sorted_bss_symbols.sh")
|
||||
genSortedBssSymbols = pctx.AndroidStaticRule("gen_sorted_bss_symbols",
|
||||
blueprint.RuleParams{
|
||||
Command: "CLANG_BIN=${clangBin} $genSortedBssSymbolsPath ${in} ${out}",
|
||||
CommandDeps: []string{"$genSortedBssSymbolsPath", "${clangBin}/llvm-nm"},
|
||||
},
|
||||
"clangBin")
|
||||
)
|
||||
|
||||
func (linker *baseLinker) sortBssSymbolsBySize(ctx ModuleContext, in android.Path, symbolOrderingFile android.ModuleOutPath, flags builderFlags) string {
|
||||
ctx.Build(pctx, android.BuildParams{
|
||||
Rule: genSortedBssSymbols,
|
||||
Description: "generate bss symbol order " + symbolOrderingFile.Base(),
|
||||
Output: symbolOrderingFile,
|
||||
Input: in,
|
||||
Args: map[string]string{
|
||||
"clangBin": "${config.ClangBin}",
|
||||
},
|
||||
})
|
||||
return "-Wl,--symbol-ordering-file," + symbolOrderingFile.String()
|
||||
}
|
||||
|
Reference in New Issue
Block a user