mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
ld: Set the is_linker_input field
Set the is_linker_input field when adding object only section. * ldlang.c (cmdline_add_object_only_section): Set the is_linker_input field. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
@@ -10713,6 +10713,9 @@ cmdline_add_object_only_section (bfd_byte *contents, size_t size)
|
||||
goto loser;
|
||||
}
|
||||
|
||||
/* This is a linker input BFD. */
|
||||
ibfd->is_linker_input = 1;
|
||||
|
||||
if (!bfd_check_format_matches (ibfd, bfd_object, &matching))
|
||||
{
|
||||
err = bfd_errmsg (bfd_get_error ());
|
||||
|
||||
Reference in New Issue
Block a user