]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - binutils/nm.c
Don't claim a fat IR object if no IR object should be claimed
[thirdparty/binutils-gdb.git] / binutils / nm.c
index a8e915bc0b4bd2c4dc1c7d243a0aa0500d0ac1ca..faf27c59b4d31585d81379ea8b052ff26459543e 100644 (file)
@@ -1466,9 +1466,9 @@ display_rel_file (bfd *abfd, bfd *archive_bfd)
        free (dyn_syms);
     }
 
-  /* lto_slim_object is set to false when a bfd is loaded with a compiler
-     LTO plugin.  */
-  if (abfd->lto_slim_object)
+  /* lto_type is set to lto_non_ir_object when a bfd is loaded with a
+     compiler LTO plugin.  */
+  if (bfd_get_lto_type (abfd) == lto_slim_ir_object)
     {
       report_plugin_err = false;
       non_fatal (_("%s: plugin needed to handle lto object"),