This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: ld --emit-relocs fixes
On Mon, May 06, 2002 at 05:44:20PM +0930, Alan Modra wrote:
> +++ bfd/elflink.h 6 May 2002 07:47:01 -0000
> @@ -6842,6 +6842,7 @@ elf_link_input_bfd (finfo, input_bfd)
> r_symndx = sec->output_section->target_index;
> BFD_ASSERT (r_symndx != 0);
> }
> + irela->r_addend += sec->output_offset;
> }
> else
> {
This hunk not applied as my x86 "make check" failed. rel targets
complain with r_addend non-zero.
It seems that relocate_section on all rela targets needs to tweak
r_addend for info->emitrelocations and bed->elf_backend_emit_relocs
as well as info->relocateable, or else we move those tweaks in
the backends to elf_link_input_bfd.
--
Alan Modra
IBM OzLabs - Linux Technology Centre