Re: [PATCH 05/15] modules: load module sections at page-aligned addresses

2024-05-24 Thread Vladimir 'phcoder' Serbinenko
What happens when 2 sections with the same NX and WR attributes follow each other? Do we need to split them per page? How often do we needlessly split in the current codebase? > to dump into the ELF section header, which is often pretty useless. I think this is not true. It's not useless, just d

[PATCH 05/15] modules: load module sections at page-aligned addresses

2024-05-24 Thread Mate Kukri
From: Peter Jones Currently we load module sections at whatever alignment gcc+ld happened to dump into the ELF section header, which is often pretty useless. For example, by default time.mod has these sections on a current x86_64 build: $ eu-readelf -a grub-core/time.mod |& grep ^Section -A13 S