|
From: Oswald B. <os...@kd...> - 2004-08-05 13:04:48
|
On Thu, Aug 05, 2004 at 01:56:20PM +0100, Nicholas Nethercote wrote: > On Thu, 5 Aug 2004, Oswald Buddenhagen wrote: > >i did this a few days ago (with 0xa0000000) to accomodate the > >PAGE_OFFSET change i did to be able to use the whole 1 gig of ram > >without compiling linux for highmem. memcheck works like a charm. > > I don't know what the PAGE_OFFSET change is (is it relevant to Valgrind?) > PAGE_OFFSET is the kernel #define for the kernel/user space split. theoretically it can be set to about anything (except if you want hugetlb support, in which case it must be 1gb-aligned) ... > I think this highest address can always be determined by looking at where > the stack is... > not sure. some redhat kernel patches change the stack location. a binary search with fixed-address-mmaps could work. > so stage1 should find this place, and then load stage2 in the found > place (ignoring where the elf info says it should go), and tell stage2 > where it is loaded by via the auxv... > yup, but then stage2 has to be compiled with -fPIC. -- Hi! I'm a .signature virus! Copy me into your ~/.signature, please! -- Chaos, panic, and disorder - my work here is done. |