OSDN Git Service

elf: take phdr offset into account when calculating the program load address
authorJonas Maebe <jonas.maebe@elis.ugent.be>
Fri, 24 Oct 2014 14:07:15 +0000 (16:07 +0200)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 3 Nov 2014 09:03:34 +0000 (11:03 +0200)
commita93934fecd4dffc9d4b452b670c9506be5dea30d
tree8fba143f9591c93908ef2a05c750c9da2b937e97
parent686581adcfead947b4726d82b1eaf7c25fa597e6
elf: take phdr offset into account when calculating the program load address

The first program header does not necessarily start at offset 0. This change
corresponds to what the Linux kernel does in load_elf_binary().

Signed-off-by: Jonas Maebe <jonas.maebe@elis.ugent.be>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/elfload.c