Memory leaks and ineffective bounds checking in wasm_scan
[deliverable/binutils-gdb.git] / sim / rx / load.c
index c4cbb436896ec5038aaf1a8f41e694b608f3ecdb..fcf3bf385443e2040c272ca9e8b225f6994cd36d 100644 (file)
@@ -1,6 +1,6 @@
 /* load.c --- loading object files into the RX simulator.
 
-Copyright (C) 2005-2016 Free Software Foundation, Inc.
+Copyright (C) 2005-2020 Free Software Foundation, Inc.
 Contributed by Red Hat, Inc.
 
 This file is part of the GNU simulators.
@@ -52,7 +52,7 @@ find_section_name_by_offset (bfd *abfd, file_ptr filepos)
 
   for (s = abfd->sections; s; s = s->next)
     if (s->filepos == filepos)
-      return bfd_get_section_name (abfd, s);
+      return bfd_section_name (s);
 
   return "(unknown)";
 }
This page took 0.027836 seconds and 4 git commands to generate.