Handle partial link of a single object with a linker script.
Fixes: 142931094 Test: m bssl with -DNO_ASM and all assembly sources commented out Change-Id: Id56d325fbf1d4a0777944512a88f3c086e930af7
This commit is contained in:
@@ -104,7 +104,7 @@ func (object *objectLinker) link(ctx ModuleContext,
|
|||||||
var outputFile android.Path
|
var outputFile android.Path
|
||||||
builderFlags := flagsToBuilderFlags(flags)
|
builderFlags := flagsToBuilderFlags(flags)
|
||||||
|
|
||||||
if len(objs.objFiles) == 1 {
|
if len(objs.objFiles) == 1 && String(object.Properties.Linker_script) == "" {
|
||||||
outputFile = objs.objFiles[0]
|
outputFile = objs.objFiles[0]
|
||||||
|
|
||||||
if String(object.Properties.Prefix_symbols) != "" {
|
if String(object.Properties.Prefix_symbols) != "" {
|
||||||
|
Reference in New Issue
Block a user