This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: question about pic and relocation


On Thu, Feb 23, 2006 at 01:51:08PM +0800, Eric Fisher wrote:
> But flag '-shared' and '-fpic' are used to create shared object,
> aren't they? When I use objdump to see the codes, I find that the
> program address doesn't start from 0. Such as,

On MIPS, it happens that shared libraries are linked as 0x5ffe0000
or thereabouts.  It's historical.

> Why? And the symble 'b' is of absolute type(*A*)?

I don't know; not enough information.


-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]