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>
This commit is contained in:
Bin Meng 2023-04-13 14:20:03 +08:00 committed by Leo Yu-Chi Liang
parent fb3cc482da
commit 781a0308f4

View File

@ -118,5 +118,7 @@ int main(int argc, const char *const *argv)
prelink_le32(data);
}
munmap(data, st.st_size);
return 0;
}