mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-30 21:44:19 +08:00
ip2k: don't look at stab sections without relocs
No need to read contents if we won't do anything. * elf32-ip2k.c (adjust_all_relocations): Skip stab sections without relocs.
This commit is contained in:
parent
3a574cce26
commit
98571cade2
@ -623,7 +623,7 @@ adjust_all_relocations (bfd *abfd,
|
||||
|
||||
/* Now fix the stab relocations. */
|
||||
stab = bfd_get_section_by_name (abfd, ".stab");
|
||||
if (stab)
|
||||
if (stab && stab->reloc_count != 0)
|
||||
{
|
||||
bfd_byte *stabcontents, *stabend, *stabp;
|
||||
bfd_size_type stab_size = stab->rawsize ? stab->rawsize : stab->size;
|
||||
|
Loading…
Reference in New Issue
Block a user