PERFORCE change 156628 for review
Robert Watson
rwatson at FreeBSD.org
Sat Jan 24 16:07:40 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=156628
Change 156628 by rwatson at rwatson_freebsd_capabilities on 2009/01/25 00:06:47
When no ELF interpret is loaded, set AT_BASE to NULL rather than
setting it to the address we would have used if there had been
an interpreter. One might argue that AT_BASE shouldn't be set in
this case, but Linux does so, so do it here as well.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/sys/kern/imgact_elf.c#5 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/sys/kern/imgact_elf.c#5 (text+ko) ====
@@ -827,7 +827,8 @@
uprintf("ELF interpreter %s not found\n", interp);
return (error);
}
- }
+ } else
+ addr = 0;
/*
* Construct auxargs table (used by the fixup routine)
More information about the p4-projects
mailing list