Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since section ro_after_init contains writable data located inside .rodata section (which is read-only), resulting rodata section is writable. Since we don't have implementation of mark_rodata_ro() in our arch, those section keep writable forever. So this commit moves data.ro_after_init section from rodata to the end of sections so that rodata section will be read-only. Without this commit there is no issue, but valgrind somehow puzzled with malformed sections when ro_after_init section used, and results unresolved symbols after a valgrind run. This commit fixes torvalds#349. Fixes: d2ec3f7 ("pty: make ptmx file ops read-only after init") The commit uses (d07a980, s390: add proper __ro_after_init support) as a reference. Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
- Loading branch information