https://sourceware.org/bugzilla/show_bug.cgi?id=28689
Bug ID: 28689 Summary: p_align in ELF program headers should not exceed section alignment Product: binutils Version: unspecified Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com Target Milestone: --- Currently, on 32-bit and 64-bit Arm, it seems that BFD ld generates p_align values of 65536 even if no section alignment is greater than 4096. The issue is more general and probably affects other targets with multiple common page sizes. While file layout absolutely must take 64K page size into account, that does not have to be reflected in the p_align value. If running on a 64K kernel, the file will be loaded at a 64K page boundary by necessity. On a 4K kernel, 64K alignment is not needed. We are going to fix the glibc loader to honor p_align (bug 28676). This means that on 4K kernels, we will start to do extra work for 64K p_align, but this pointless for pretty much all binaries (whose section alignment rarely exceeds 16). A further complication is glibc bug 28688. So I'm not entirely sure anymore what we should do here. -- You are receiving this mail because: You are on the CC list for the bug.