]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: prelink-riscv: Unmap the ELF image when done
authorBin Meng <bmeng@tinylab.org>
Thu, 13 Apr 2023 06:20:03 +0000 (14:20 +0800)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 20 Apr 2023 12:45:08 +0000 (20:45 +0800)
commit781a0308f43c118e9e94b57140c1ec92a0768a67
treeda16ab8ac522e4dab0b4ab2b90a9ad5345bb8743
parentfb3cc482dad2796398dca4de3ca9d4065f1273ee
tools: prelink-riscv: Unmap the ELF image when done

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