Handle pack_relocations in linker.cc

When pack_relocations is false and clang lld is used,
pass --pack-dyn-relocs=none to lld.

Bug: 80093890
Test: build and boot with USE_CLANG_LLD=true
Change-Id: I0ffe77a111d7fbab5afaa1395d09734a8a390e09
This commit is contained in:
Chih-Hung Hsieh
2018-05-23 18:30:46 -07:00
parent 4a789b1c3d
commit 8681471e70
3 changed files with 14 additions and 1 deletions

View File

@@ -1493,6 +1493,7 @@ func DefaultsFactory(props ...interface{}) android.Module {
&VendorProperties{},
&BaseCompilerProperties{},
&BaseLinkerProperties{},
&MoreBaseLinkerProperties{},
&LibraryProperties{},
&FlagExporterProperties{},
&BinaryLinkerProperties{},