This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[patch] xstormy16: support merged sections
- From: DJ Delorie <dj at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Fri, 21 Mar 2003 14:49:38 -0500
- Subject: [patch] xstormy16: support merged sections
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 at redhat dot 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