Apply _RELATIVE relocations ahead of others.
commit430072c87e69baa5fae82ba63096bfe901535a21
authorsimonb <simonb@chromium.org>
Wed, 5 Nov 2014 12:48:49 +0000 (5 04:48 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 5 Nov 2014 12:49:08 +0000 (5 12:49 +0000)
treea553a72b831001249772e89deb10cd9c7fe1279b
parentcaa81baf97a12028a1e320e81142a01eae6439cf
Apply _RELATIVE relocations ahead of others.

Hoist application of packed _RELATIVE relocations so that it occurs
before .rel.plt relocations, for IFUNCs.

Also, change the order in which non-packed relocations are applied
so that it matches the system linker (rel or rela, then plt).

BUG=385553

Review URL: https://codereview.chromium.org/705603002

Cr-Commit-Position: refs/heads/master@{#302787}
third_party/android_crazy_linker/README.chromium
third_party/android_crazy_linker/src/src/crazy_linker_elf_relocations.cpp