gdb: delete SYMBOL_SECTION and MSYMBOL_SECTION macros
[deliverable/binutils-gdb.git] / gdb / objfiles.c
index 18dc8fabaf13ca8e07cde33046a712ca0c7625eb..2a513d82f1a034cce6a150a4f7ba846c3ce3a89a 100644 (file)
@@ -621,11 +621,11 @@ relocate_one_symbol (struct symbol *sym, struct objfile *objfile,
      they can't possibly pass the tests below.  */
   if ((SYMBOL_CLASS (sym) == LOC_LABEL
        || SYMBOL_CLASS (sym) == LOC_STATIC)
-      && SYMBOL_SECTION (sym) >= 0)
+      && sym->section_index () >= 0)
     {
       SET_SYMBOL_VALUE_ADDRESS (sym,
                                SYMBOL_VALUE_ADDRESS (sym)
-                               + delta[SYMBOL_SECTION (sym)]);
+                               + delta[sym->section_index ()]);
     }
 }
 
This page took 0.025179 seconds and 4 git commands to generate.