Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
userlib: Add a fallback dummy section if
.bss
is empty
Binaries without uninitialized global variable may generate a `.bss` LOAD segment with no valid content (`p_filesz` = 0, `p_memsz` = 0). The problem with such a segment is that ELF parser may fail with unaligned segment address error. To avoid this, add a dummy `.bss` to force non-zero memory allocation, ensuring a meaningful PT_LOAD. Signed-off-by: Vijay Dhanraj <[email protected]>
- Loading branch information