Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/bfd Ignore 0 size'd symbols when...



details:   https://anonhg.NetBSD.org/src/rev/c177825df961
branches:  trunk
changeset: 451090:c177825df961
user:      christos <christos%NetBSD.org@localhost>
date:      Sun May 05 21:49:53 2019 +0000

description:
Ignore 0 size'd symbols when looking for CMSE veneers.
XXX: Is this correct?

diffstat:

 external/gpl3/binutils/dist/bfd/elf32-arm.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0d892c0c7212 -r c177825df961 external/gpl3/binutils/dist/bfd/elf32-arm.c
--- a/external/gpl3/binutils/dist/bfd/elf32-arm.c       Sun May 05 21:01:01 2019 +0000
+++ b/external/gpl3/binutils/dist/bfd/elf32-arm.c       Sun May 05 21:49:53 2019 +0000
@@ -19661,7 +19661,7 @@
 
   /* Mark CMSE special symbols.  */
   symtab_hdr = & elf_symtab_hdr (abfd);
-  if (symtab_hdr->sh_size)
+  if (symtab_hdr->sh_size && dst->st_size != 0)
     name = bfd_elf_sym_name (abfd, symtab_hdr, dst, NULL);
   if (name && CONST_STRNEQ (name, CMSE_PREFIX))
     ARM_SET_SYM_CMSE_SPCL (dst->st_target_internal);



Home | Main Index | Thread Index | Old Index