forked from Imagelibrary/binutils-gdb
ld: Call cmdline_check_object_only_section only if plugin is enabled
* ldmain.c (add_archive_element): Call cmdline_check_object_only_section only if BFD_SUPPORTS_PLUGINS is defined. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
@@ -933,8 +933,8 @@ add_archive_element (struct bfd_link_info *info,
|
||||
}
|
||||
}
|
||||
else
|
||||
#endif /* BFD_SUPPORTS_PLUGINS */
|
||||
cmdline_check_object_only_section (input->the_bfd, false);
|
||||
#endif /* BFD_SUPPORTS_PLUGINS */
|
||||
|
||||
if (link_info.input_bfds_tail == &input->the_bfd->link.next
|
||||
|| input->the_bfd->link.next != NULL)
|
||||
|
||||
Reference in New Issue
Block a user