* coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
authorIan Lance Taylor <ian@airs.com>
Fri, 6 Oct 1995 16:09:24 +0000 (16:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 6 Oct 1995 16:09:24 +0000 (16:09 +0000)
BSF_LOCAL.

bfd/coffcode.h

index 02971ce9183052aa69dfa794a66f1b25fbc213a0..2a0ec3426d0221ffd197bac4c3ed8c4682870be5 100644 (file)
@@ -2311,27 +2311,29 @@ coff_slurp_symbol_table (abfd)
                }
              else
                {
-                 /*
-           Base the value as an index from the base of the
-           section
-           */
+                 /* Base the value as an index from the base of the
+                    section */
 
                  dst->symbol.flags = BSF_EXPORT | BSF_GLOBAL;
-                 dst->symbol.value = src->u.syment.n_value - dst->symbol.section->vma;
+                 dst->symbol.value = (src->u.syment.n_value
+                                      - dst->symbol.section->vma);
 
                  if (ISFCN ((src->u.syment.n_type)))
                    {
-                     /*
-             A function ext does not go at the end of a file
-             */
+                     /* A function ext does not go at the end of a
+                        file.  */
                      dst->symbol.flags |= BSF_NOT_AT_END | BSF_FUNCTION;
                    }
                }
 
 #ifdef RS6000COFF_C
-             /* If this symbol has a csect aux of type LD, the scnlen field
-          is actually the index of the containing csect symbol.  We
-          need to pointerize it.  */
+             /* A C_HIDEXT symbol is not global.  */
+             if (src->u.syment.n_sclass == C_HIDEXT)
+               dst->symbol.flags = BSF_LOCAL;
+
+             /* If this symbol has a csect aux of type LD, the scnlen
+                field is actually the index of the containing csect
+                symbol.  We need to pointerize it.  */
              if (src->u.syment.n_numaux > 0)
                {
                  combined_entry_type *aux;
This page took 0.027466 seconds and 4 git commands to generate.