Fix problems introduced with my last change.
[deliverable/binutils-gdb.git] / gdb / elfread.c
index 85b04ec7bbe5ec1df95f78cae9258ef2da961592..60f7988029b03ea3aa1c5494d9df21eb8998d3c8 100644 (file)
@@ -191,18 +191,16 @@ record_minimal_symbol_and_info (name, address, ms_type, info, bfd_section,
     {
     case mst_text:
     case mst_file_text:
-      section = SECT_OFF_TEXT (objfile);
+      section = bfd_section->index;
 #ifdef SMASH_TEXT_ADDRESS
       SMASH_TEXT_ADDRESS (address);
 #endif
       break;
     case mst_data:
     case mst_file_data:
-      section = SECT_OFF_DATA (objfile);
-      break;
     case mst_bss:
     case mst_file_bss:
-      section = SECT_OFF_BSS (objfile);
+      section = bfd_section->index;
       break;
     default:
       section = -1;
This page took 0.023613 seconds and 4 git commands to generate.