Chris Friesen wrote:
> The elf spec says that PT_LOAD segments must be ordered by vaddr. We
> want to have a segment at a relatively low fixed vaddr. The exact
> address is not important, except that it's lower than the standard elf
> headers and so it must be the first segment in the elf file.
So you want a zero mapping at a particular address? So the vaddr and
the memsz are set, but offset and filesz are zero?
> In the kernel elf loader, the p_vaddr and p_offset of the first
> segment are used to determine the load_addr for use with the rest of
> the segments. In the case of this elf file, the first segment does
> not actually have a valid p_offset.
Well, you could make the p_offset the same as the first segment with a
non-zero filesz. That should satisfy the elf loader, though it might
still confuse things.
Why can't you create this mapping at runtime?
J
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]