From: Mike F. <va...@ge...> - 2010-08-17 20:39:29
|
On Tue, Aug 17, 2010 at 2:34 PM, David Marlin wrote: > 'lchown02.c' does not build properly due to calls to mmap and > get_high_address (which references sbrk) when UCLINUX=1 is defined. you'll need to clarify. it builds fine for me, it just may not run correctly due to the assumptions of memory placement. for runtime issues, how about we change lib/get_high_address.c to return NULL for UCLINUX targets. then in lchown.c, we can check for NULL and skip the test when we get that value. that leaves your ifdefing of -1 pointer address. any sane nommu port should reject that address in the kernel. if yours isnt, fix your kernel. -mike |