[ELF] - Implemented -z combrelocs/nocombreloc.

Description

[ELF] - Implemented -z combrelocs/nocombreloc.

This is the option which sorts relocs to optimize dynamic linker performance.
-z combelocs is the default in gold, also it ignores -z nocombreloc,
this patch do the same.

Patch sorts relocations by symbols only and do not create any
DT_REL[A]COUNT entries. That is different with what gold/bfd do.

More information about option is here:
http://www.airs.com/blog/archives/186
http://people.redhat.com/jakub/prelink.pdf, p.2

Differential revision: http://reviews.llvm.org/D19528

Details

Committed
grimarMay 10 2016, 8:47 AM
Differential Revision
D19528: [ELF] - Implemented -z combrelocs/nocombreloc.
Parents
rL269065: [clang-tidy] Lift parsing of sequence of names functions to utils.
Branches
Unknown
Tags
Unknown