PERFORCE change 132153 for review

John Baldwin jhb at freebsd.org
Wed Jan 2 13:13:43 PST 2008


On Wednesday 02 January 2008 03:39:13 pm John Birrell wrote:
> On Wed, Jan 02, 2008 at 02:12:08PM -0500, John Baldwin wrote:
> > amd64 uses the equivalent of a .o for klds whereas other archs 
> > use the equivalent of a .so.  Hence link_elf.c (shared object for !amd64) 
and 
> > link_elf_object.c (handles plain object files).  Other platforms could be 
> > switched to using plain objects IIRC, they are just using .so for their 
> > default.
> 
> So I assume then that the amd64 .o is doesn't need to be relocated on load
> which was why I needed to find the program header on i386.

It would appear from the link_elf_obj.c code that .o files are relocated on 
load.

-- 
John Baldwin


More information about the p4-projects mailing list