This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: hppa64-hp-hpux11.00: invalid string offset for section .dynstr
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: "H . J . Lu" <hjl at lucon dot org>, ross dot alexander at uk dot neceur dot com, law at redhat dot com, binutils at sources dot redhat dot com, binutils-owner at sources dot redhat dot com
- Date: Thu, 20 Jun 2002 09:03:00 +0930
- Subject: Re: hppa64-hp-hpux11.00: invalid string offset for section .dynstr
- References: <20020619104051.A27176@lucon.org> <200206192157.g5JLvoJL020074@hiauly1.hia.nrc.ca>
On Wed, Jun 19, 2002 at 05:57:50PM -0400, John David Anglin wrote:
> > It sounds like a SHF_MERGE bug. I just fixed a SHF_MERGE bug on
> > ELF/mips. Do
>
> Well I can see that
>
> --- bfd/elf-hppa.h.jj Fri Oct 5 13:02:02 2001
> +++ bfd/elf-hppa.h Thu Nov 22 11:38:37 2001
> @@ -1325,10 +1325,7 @@ elf_hppa_relocate_section (output_bfd, i
> /* This is a local symbol. */
> sym = local_syms + r_symndx;
> sym_sec = local_sections[r_symndx];
> - relocation = ((ELF_ST_TYPE (sym->st_info) == STT_SECTION
> - ? 0 : sym->st_value)
> - + sym_sec->output_offset
> - + sym_sec->output_section->vma);
> + relocation = _bfd_elf_rela_local_sym (output_bfd, sym, sym_sec, rel);
>
> and the corresponding bit for elf32-hppa.c don't appear correct because we
> are now adding in "sym->st_value" in all cases. Maybe the addend is wrong
> as well.
sym->st_value == 0 for section syms, so the test is redundant.
--
Alan Modra
IBM OzLabs - Linux Technology Centre