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:
Pete Bentley 2019-10-18 12:39:56 +01:00
parent 43bfaf9f65
commit ab65ba9481
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ func (object *objectLinker) link(ctx ModuleContext,
var outputFile android.Path
builderFlags := flagsToBuilderFlags(flags)
if len(objs.objFiles) == 1 {
if len(objs.objFiles) == 1 && String(object.Properties.Linker_script) == "" {
outputFile = objs.objFiles[0]
if String(object.Properties.Prefix_symbols) != "" {