Fix pthread_setname_np build error
[deliverable/binutils-gdb.git] / gdb / symfile-mem.c
index 05542c13915cbe1fb269353a79b5737c418e5983..82fb17ed1654f7688fd75de0706b9ef38af3065e 100644 (file)
@@ -111,9 +111,9 @@ symbol_file_add_from_memory (struct bfd *templ, CORE_ADDR addr,
 
   section_addr_info sai;
   for (sec = nbfd->sections; sec != NULL; sec = sec->next)
-    if ((bfd_get_section_flags (nbfd, sec) & (SEC_ALLOC|SEC_LOAD)) != 0)
-      sai.emplace_back (bfd_get_section_vma (nbfd, sec) + loadbase,
-                       bfd_get_section_name (nbfd, sec),
+    if ((bfd_section_flags (sec) & (SEC_ALLOC|SEC_LOAD)) != 0)
+      sai.emplace_back (bfd_section_vma (sec) + loadbase,
+                       bfd_section_name (sec),
                        sec->index);
 
   if (from_tty)
This page took 0.026154 seconds and 4 git commands to generate.