diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2025-08-18 05:33:04 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2025-08-18 07:01:42 -0700 |
commit | 5bef3e65ec3ffdc03b1c678f21b4e16007ff03ea (patch) | |
tree | e6ea130eaec63fad6e06be5bea62d80f5165600f | |
parent | fc6423d965d5aa406ba64a18f3a45b5c53864d9f (diff) | |
download | binutils-5bef3e65ec3ffdc03b1c678f21b4e16007ff03ea.zip binutils-5bef3e65ec3ffdc03b1c678f21b4e16007ff03ea.tar.gz binutils-5bef3e65ec3ffdc03b1c678f21b4e16007ff03ea.tar.bz2 |
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>
-rw-r--r-- | ld/ldlang.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 2e6d010..048c848 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 ()); |