(scan_xcoff_symtab): Do not include global symbols
[deliverable/binutils-gdb.git] / gdb / xcoffread.c
index 660e0121436c992b9ef4631bb87b2911e165d838..edcd13d0a431a2216dfe07d993ba61aea6e2b466 100644 (file)
@@ -2755,6 +2755,14 @@ scan_xcoff_symtab (struct objfile *objfile)
                    function_outside_compilation_unit_complaint (name);
                    xfree (name);
                  }
+
+               /* We need only the minimal symbols for these
+                  loader-generated definitions.   Keeping the global
+                  symbols leads to "in psymbols but not in symbols"
+                  errors. */
+               if (strncmp (namestring, "@FIX", 4) == 0)
+                 continue;
+
                symbol.n_value += ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
                add_psymbol_to_list (namestring, p - namestring,
                                     VAR_DOMAIN, LOC_BLOCK,
This page took 0.029727 seconds and 4 git commands to generate.