mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-31 22:13:43 +00:00
2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_check_relocs): Properly check local symbol on error. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
This commit is contained in:
parent
0763ab8126
commit
09a24cbf39
@ -1,3 +1,9 @@
|
||||
2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf32-i386.c (elf_i386_check_relocs): Properly check local
|
||||
symbol on error.
|
||||
* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
|
||||
|
||||
2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* elf32-i386.c (elf_i386_tls_transition): Add a parameter,
|
||||
|
@ -1538,7 +1538,7 @@ elf_i386_check_relocs (bfd *abfd,
|
||||
tls_type |= old_tls_type;
|
||||
else
|
||||
{
|
||||
if (h->root.root.string)
|
||||
if (h)
|
||||
name = h->root.root.string;
|
||||
else
|
||||
name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
|
||||
|
@ -1232,7 +1232,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
|
||||
case R_X86_64_TPOFF32:
|
||||
if (info->shared)
|
||||
{
|
||||
if (h->root.root.string)
|
||||
if (h)
|
||||
name = h->root.root.string;
|
||||
else
|
||||
name = bfd_elf_sym_name (abfd, symtab_hdr, isym,
|
||||
@ -1327,7 +1327,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
|
||||
tls_type |= old_tls_type;
|
||||
else
|
||||
{
|
||||
if (h->root.root.string)
|
||||
if (h)
|
||||
name = h->root.root.string;
|
||||
else
|
||||
name = bfd_elf_sym_name (abfd, symtab_hdr,
|
||||
@ -1402,7 +1402,7 @@ elf64_x86_64_check_relocs (bfd *abfd, struct bfd_link_info *info,
|
||||
&& (sec->flags & SEC_ALLOC) != 0
|
||||
&& (sec->flags & SEC_READONLY) != 0)
|
||||
{
|
||||
if (h->root.root.string)
|
||||
if (h)
|
||||
name = h->root.root.string;
|
||||
else
|
||||
name = bfd_elf_sym_name (abfd, symtab_hdr, isym, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user