OSDN Git Service

linux-user: Do not subtract offset from end address
authorTom Musta <tommusta@gmail.com>
Thu, 6 Nov 2014 19:43:13 +0000 (13:43 -0600)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 11 Nov 2014 06:12:45 +0000 (08:12 +0200)
commitccf661f827faf700b03a30076b5f944e8f787280
tree98baaa004b686a0d004c495d74bdb175966def0e
parent558c2c8ddfb165a36eb95dc93125c04829d68aa7
linux-user: Do not subtract offset from end address

When computing the upper address of a program segment, do not subtract the
offset from the virtual address; instead compute the sum of the virtual address
and the memory size.

Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/elfload.c