mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
* elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
dynsyms.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2002-02-26 Andrew Macleod <amacleod@cygnus.com>
|
||||||
|
|
||||||
|
* elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
|
||||||
|
dynsyms.
|
||||||
|
|
||||||
2002-02-25 Alan Modra <amodra@bigpond.net.au>
|
2002-02-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-hppa.h: Update copyright date.
|
* elf64-hppa.h: Update copyright date.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* ELF linker support.
|
/* ELF linker support.
|
||||||
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001
|
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
||||||
Free Software Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
@ -5375,8 +5375,9 @@ elf_bfd_final_link (abfd, info)
|
|||||||
the original st_name with the dynstr_index. */
|
the original st_name with the dynstr_index. */
|
||||||
sym = e->isym;
|
sym = e->isym;
|
||||||
|
|
||||||
if (e->isym.st_shndx < SHN_LORESERVE
|
if (e->isym.st_shndx != SHN_UNDEF
|
||||||
|| e->isym.st_shndx > SHN_HIRESERVE)
|
&& (e->isym.st_shndx < SHN_LORESERVE
|
||||||
|
|| e->isym.st_shndx > SHN_HIRESERVE))
|
||||||
{
|
{
|
||||||
s = bfd_section_from_elf_index (e->input_bfd,
|
s = bfd_section_from_elf_index (e->input_bfd,
|
||||||
e->isym.st_shndx);
|
e->isym.st_shndx);
|
||||||
|
Reference in New Issue
Block a user