[ELF] Add --as-needed.
Audit RequiredrL226274

Description

[ELF] Add --as-needed.

The previous default behavior of LLD is --as-needed. LLD linked
against a DSO only if the DSO file was actually used to link an
executable (i.e. at least one symbol was resolved using the shared
library file.)

In this patch I added a boolean flag to FileNode for --as-needed.
I also added an accessor to DSO name to shared library file class.

Details

Auditors
Bigcheese
Committed
ruiuJan 16 2015, 6:27 AM
Parents
rL226273: [asan] Change detection of allow_user_segv_handler on Android.
Branches
Unknown
Tags
Unknown