This is the mail archive of the mailing list for the binutils project.

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

RE: ld and relocatable vs. absolute

I am using binutils 2.10.  I did a source search for "emitrelocations"
and it is not there.  To what flag are you referring below?


> -----Original Message-----
> From:
> []On Behalf Of Momchil Velikov
> Sent: Friday, September 08, 2000 6:13 PM
> To:
> Cc:
> Subject: Re: ld and relocatable vs. absolute
> >>>>> "Chuck" == Chuck Meade <> writes:
> Chuck> Several linkers (including Diab and Green Hills) support the
> Chuck> creation of a fully-linked executable image that at the same
> Chuck> time retains relocation information, allowing it to be 
> Chuck> relocated to a dynamically determined memory address at load
> Chuck> time by an on-target loader.
> Chuck> Such an image would not have unresolved references, it would
> Chuck> just be relocatable.
> Chuck> I would like to be able to accomplish the same with ld for
> Chuck> PowerPC.  Has anyone out there done this?  Any tips?
> It is already there. See
> 2000-05-18  Momchil Velikov <>
> 	* elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
> 	relocs for an executable, ensure that they are virtual addresses.
> 2000-05-17  S. Bharadwaj Yadavalli  <>
> 	    Rick Gorton	            <>
> 	* elflink.h: Add emitrelocations support: when enabled, relocation
> 	information and relocation sections are put into final output
> 	executables.  If the emitrelocations flag is set, do the following:
> 	(elf_bfd_final_link): Emit relocation sections.
> 	(elf_link_input_bfd): Compute relocation section contents.
> 	(elf_gc_sections): Don't clean relocation sections.
> Regards,
> -velco

Do You Yahoo!?
Get your free address at

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