From: H.J. Lu Date: Mon, 18 Aug 2025 12:33:04 +0000 (-0700) Subject: ld: Set the is_linker_input field X-Git-Tag: gdb-17-branchpoint~263 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bef3e65ec3ffdc03b1c678f21b4e16007ff03ea;p=thirdparty%2Fbinutils-gdb.git 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 --- diff --git a/ld/ldlang.c b/ld/ldlang.c index 2e6d0108f98..048c8480786 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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 ());