Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2008 16:13:34 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        John Birrell <jb@what-creek.com>
Cc:        perforce@freebsd.org, "M. Warner Losh" <imp@bsdimp.com>
Subject:   Re: PERFORCE change 132153 for review
Message-ID:  <200801021613.35446.jhb@freebsd.org>
In-Reply-To: <20080102203913.GA44121@what-creek.com>
References:  <200712310531.lBV5VvH3092205@repoman.freebsd.org> <200801021412.09276.jhb@freebsd.org> <20080102203913.GA44121@what-creek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801021613.35446.jhb>