git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb3cc48
)
tools: prelink-riscv: Unmap the ELF image when done
author
Bin Meng
<bmeng@tinylab.org>
Thu, 13 Apr 2023 06:20:03 +0000
(14:20 +0800)
committer
Leo Yu-Chi Liang
<ycliang@andestech.com>
Thu, 20 Apr 2023 12:45:08 +0000
(20:45 +0800)
The codes forget to call munmap() to unmap the ELF image that was
mapped by previous mmap().
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Rick Chen <rick@andestech.com>
tools/prelink-riscv.c
patch
|
blob
|
history
diff --git
a/tools/prelink-riscv.c
b/tools/prelink-riscv.c
index
b046794
..
43d6412
100644
(file)
--- a/
tools/prelink-riscv.c
+++ b/
tools/prelink-riscv.c
@@
-118,5
+118,7
@@
int main(int argc, const char *const *argv)
prelink_le32(data);
}
+ munmap(data, st.st_size);
+
return 0;
}