Skip to content

Commit

Permalink
Test the entire object if it contains only data sections.
Browse files Browse the repository at this point in the history
  • Loading branch information
claziss committed Oct 16, 2015
1 parent 0614044 commit 5df50c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 5 additions & 0 deletions bfd/ChangeLog.ARC
@@ -1,3 +1,8 @@
2015-10-16 Claudiu Zissulescu <claziss@synopsys.com>

* elf32-arc.c (arc_elf_merge_private_bfd_data): Check the entire
object if only contains data sections.

2015-08-04 Claudiu Zissulescu <claziss@synopsys.com>

* elf32-arc.c (arc_elf_merge_private_bfd_data): Check to see
Expand Down
9 changes: 3 additions & 6 deletions bfd/elf32-arc.c
Expand Up @@ -915,11 +915,9 @@ of opposite endian-ness"),
|| bfd_get_flavour (obfd) != bfd_target_elf_flavour)
return TRUE;

/* Check to see if the input BFD actually contains any sections. If
not, its flags may not have been initialised either, but it
cannot actually cause any incompatiblity. Do not short-circuit
dynamic objects; their section list may be emptied by
elf_link_add_object_symbols. */
/* Check to see if the input BFD actually contains any sections. Do
not short-circuit dynamic objects; their section list may be
emptied by elf_link_add_object_symbols. */
if (!(ibfd->flags & DYNAMIC))
{
bfd_boolean null_input_bfd = TRUE;
Expand All @@ -933,7 +931,6 @@ of opposite endian-ness"),
only_data_sections = FALSE;

null_input_bfd = FALSE;
break;
}

if (null_input_bfd || only_data_sections)
Expand Down

0 comments on commit 5df50c6

Please sign in to comment.