(elf_machine_rela): DT_STRTAB is already relocated.

This commit is contained in:
Ulrich Drepper 1999-02-20 14:58:50 +00:00
parent 44bff56804
commit a2790a3c68

View File

@ -1,5 +1,5 @@
/* Machine-dependent ELF dynamic relocation inline functions. m68k version. /* Machine-dependent ELF dynamic relocation inline functions. m68k version.
Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
This file is part of the GNU C Library. This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or The GNU C Library is free software; you can redistribute it and/or
@ -277,8 +277,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
extern char **_dl_argv; extern char **_dl_argv;
const char *strtab; const char *strtab;
strtab = ((void *) map->l_addr strtab = (const void *) map->l_info[DT_STRTAB]->d_un.d_ptr;
+ map->l_info[DT_STRTAB]->d_un.d_ptr);
_dl_sysdep_error (_dl_argv[0] ?: "<program name unknown>", _dl_sysdep_error (_dl_argv[0] ?: "<program name unknown>",
": Symbol `", strtab + refsym->st_name, ": Symbol `", strtab + refsym->st_name,
"' has different size in shared object, " "' has different size in shared object, "