question about pic and relocation

Daniel Jacobowitz drow@false.org
Thu Feb 23 14:08:00 GMT 2006


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



More information about the Gcc mailing list