w6l: purge dead elf branches; pin rx extent
This commit is contained in:
@@ -668,6 +668,8 @@ export fn emitdynelf(l: *lnk, fd: i32, base: u64, entry: u64) i32 = {
|
||||
dwr64(filebuf.ptr, p0 + 16u64, base);
|
||||
dwr64(filebuf.ptr, p0 + 24u64, base);
|
||||
dwr64(filebuf.ptr, p0 + 32u64, rxend);
|
||||
// The loader page-rounds mappings; gotpltoff independently starts
|
||||
// the next page, so padding is not part of the R+X extent.
|
||||
dwr64(filebuf.ptr, p0 + 40u64, rxend);
|
||||
dwr64(filebuf.ptr, p0 + 48u64, PAGE);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user