mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 20:03:16 +01:00
Removed all ignorable files from git.
Previously python hex() would put an extra 'L' after printing out the value and this would be trimmed in readelf.py. Now it doesn't seem to do that so the lsd of the number was trimmed. This patch fixes that.
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -80,8 +80,14 @@ def main():
|
||||
if image_name[-4] == ".":
|
||||
image_name = image_name[:-4]
|
||||
print image_name
|
||||
print "image_start " + hex(paddr_start)[:-1]
|
||||
print "image_end " + hex(paddr_end)[:-1]
|
||||
if hex(paddr_start)[-1] == "L":
|
||||
print "image_start " + hex(paddr_start)[:-1]
|
||||
else:
|
||||
print "image_start " + hex(paddr_start)
|
||||
if hex(paddr_end)[-1] == "L":
|
||||
print "image_end " + hex(paddr_end)[:-1]
|
||||
else:
|
||||
print "image_end " + hex(paddr_end)
|
||||
|
||||
if options.ffpage:
|
||||
paddr_max = 0
|
||||
@@ -112,8 +118,10 @@ def main():
|
||||
paddr_aligned = paddr_max & ~(p_align.value - 1)
|
||||
if paddr_max & (p_align.value - 1):
|
||||
paddr_aligned += p_align.value
|
||||
|
||||
print "physical_base = " + hex(paddr_aligned)[:-1] + ";"
|
||||
if hex(paddr_aligned)[-1] == "L":
|
||||
print "physical_base = " + hex(paddr_aligned)[:-1] + ";"
|
||||
else:
|
||||
print "physical_base = " + hex(paddr_aligned) + ";"
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user