projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
som: buffer overflow writing strings
[binutils-gdb.git]
/
bfd
/
elf32-epiphany.c
diff --git
a/bfd/elf32-epiphany.c
b/bfd/elf32-epiphany.c
index f05ef1497faf699d1ffbdffba58aa4f1267abb9b..da874dadd0b095a0eab229e431a7be4beebea499 100644
(file)
--- a/
bfd/elf32-epiphany.c
+++ b/
bfd/elf32-epiphany.c
@@
-213,8
+213,9
@@
epiphany_elf_relax_section (bfd *abfd, asection *sec,
if this section does not have relocs, or if this is
not a code section. */
if (bfd_link_relocatable (link_info)
if this section does not have relocs, or if this is
not a code section. */
if (bfd_link_relocatable (link_info)
- || (sec->flags & SEC_RELOC) == 0
|| sec->reloc_count == 0
|| sec->reloc_count == 0
+ || (sec->flags & SEC_RELOC) == 0
+ || (sec->flags & SEC_HAS_CONTENTS) == 0
|| (sec->flags & SEC_CODE) == 0)
return true;
|| (sec->flags & SEC_CODE) == 0)
return true;