hppa64-hp-hpux11.00: invalid string offset for section .dynstr

Alan Modra amodra@bigpond.net.au
Wed Jun 19 16:33:00 GMT 2002


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



More information about the Binutils mailing list