Bug 816494 part 1 - When inserting a section before or after another, also insert it in the segments containing that other. r=nfroyd,a=akeybl

--HG--
extra : transplant_source : %BA%D8%5EF%F9%D5%B9%E2%D8%181%10%B4l%5E%17%D5%D7%AD%E5
Bug 816494 part 2 - Move the PT_LOAD splitting logic in elfhack.cpp. r=nfroyd,a=akeybl

Also, section offsets are not adjusted until the split is done.

--HG--
extra : transplant_source : %9F%95-%7Ck%B1%D7MN%7F%BB%03%18jKG%8D-%7C%AB
Bug 816494 part 3 - Allocate Elf instance on stack in do_file(). r=nfroyd,a=akeybl

--HG--
extra : transplant_source : %08%81%AD%A9%A7I%9A%EA%3C%EES%A8%A3%12%C6%3A%D3%01%AC%A3
Bug 816494 part 4 - Add a -r option to elfhack that re-merges the split PT_LOADs. r=nfroyd,a=akeybl

Sections are positioned accordingly, which means the resulting ELF binary will
have a big gap full of zero between .rel.plt and .plt.

--HG--
extra : transplant_source : %D7%F8%12%AE%0A%B1%C1%95P%CC0%D2%27%B1%CA%F9G%7D%EDp
Bug 822584 - Run elfhack on packaged binaries instead of built binaries. r=ted,a=akeybl

--HG--
extra : transplant_source : %DB%84%98%D0%B1%B4%D8%40%CC%A0%2C%C1%C6%E9%CC%18%C0U%86%DE
Bug 822584 - Workaround in elfhack to accomodate for breakpad not handling the memory mapping induced by the elfhack/bionic linker combination. r=nfroyd,a=akeybl

--HG--
extra : transplant_source : %E0%17%F3%A2m%1ASd%11%01%0E2%D6%C2%C3%D0h%8E%CF%3B
Bug 822584 - Enable elfhack workaround for breakpad on b2g/gonk. r=ted,a=akeybl

--HG--
extra : transplant_source : %84%EF%EDfZ%29%19%21%B1.%3C%F4%23%06%D5%CE%C7%29%E9%F3