gdb/
[binutils-gdb.git] / gdb / elfread.c
index 516cbd0e3a496b27bc9cb72b82a3fe4f8e43c30c..84efc594dcfc1ec525bce0cce7350f2cd67ec3e1 100644 (file)
@@ -205,7 +205,7 @@ record_minimal_symbol (const char *name, int name_len, int copy_name,
 
   if (ms_type == mst_text || ms_type == mst_file_text
       || ms_type == mst_text_gnu_ifunc)
-    address = gdbarch_smash_text_address (gdbarch, address);
+    address = gdbarch_addr_bits_remove (gdbarch, address);
 
   return prim_record_minimal_symbol_full (name, name_len, copy_name, address,
                                          ms_type, bfd_section->index,