[patch] xstormy16: support merged sections

DJ Delorie dj@redhat.com
Sat Mar 22 02:25:00 GMT 2003
xstormy16 was added just after the big patch-everything for merged
sections, so this got missed.  Committed as obvious.

2003-03-21  DJ Delorie  <dj@redhat.com>

	* elf32-xstormy16.c (elf32_xstormy16_relocate_section): Call
	_bfd_elf_rela_local_sym.

Index: elf32-xstormy16.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-xstormy16.c,v
retrieving revision 1.16
diff -p -2 -r1.16 elf32-xstormy16.c
*** elf32-xstormy16.c	7 Jan 2003 21:26:13 -0000	1.16
--- elf32-xstormy16.c	21 Mar 2003 19:47:44 -0000
*************** xstormy16_elf_relocate_section (output_b
*** 846,852 ****
  	  sym = local_syms + r_symndx;
  	  sec = local_sections [r_symndx];
! 	  relocation = (sec->output_section->vma
! 			+ sec->output_offset
! 			+ sym->st_value);
  
  	  name = bfd_elf_string_from_elf_section
--- 846,850 ----
  	  sym = local_syms + r_symndx;
  	  sec = local_sections [r_symndx];
! 	  relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sec, rel);
  
  	  name = bfd_elf_string_from_elf_section



More information about the Binutils mailing list