aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-02-28 04:39:57 +0000
committerIan Lance Taylor <ian@airs.com>2009-02-28 04:39:57 +0000
commitfd9d194f0467de25e3d6e6131d641f179d7eb289 (patch)
treec99595f96a991235d7001c53d9ba332abae711a4 /gold/object.cc
parent61edd21fa41ccf31fe391ee320c4812c4d45486a (diff)
downloadgdb-fd9d194f0467de25e3d6e6131d641f179d7eb289.zip
gdb-fd9d194f0467de25e3d6e6131d641f179d7eb289.tar.gz
gdb-fd9d194f0467de25e3d6e6131d641f179d7eb289.tar.bz2
PR 6811
* options.h (class Search_directory): Add is_system_directory. (class General_options): Declare is_in_system_directory. * options.cc (get_relative_sysroot): Make static. (get_default_sysroot): Make static. (General_optoins::is_in_system_directory): New function. * fileread.cc (Input_file::is_in_system_directory): New function. * fileread.h (class Input_file): Declare is_in_system_directory. * object.h (class Object): Add is_in_system_directory. (class Input_objects): Remove system_library_directory_ field. * object.cc (Input_objects::add_object): Don't set system_library_directory_. (input_objects::found_in_system_library_directory): Remove. * symtab.cc (Symbol_table::write_globals): Remove input_objects parameter. Change all callers. (Symbol_table::sized_write_globals): Likewise. (Symbol_table::warn_about_undefined_dynobj_symbol): Likewise. Call Object::is_in_system_directory. * symtab.h (class Symbol_table): Update declarations.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc24
1 files changed, 0 insertions, 24 deletions
diff --git a/gold/object.cc b/gold/object.cc
index 82c5dd6..0f618c1 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -1941,19 +1941,6 @@ Input_objects::add_object(Object* obj)
}
this->dynobj_list_.push_back(dynobj);
-
- // If this is -lc, remember the directory in which we found it.
- // We use this when issuing warnings about undefined symbols: as
- // a heuristic, we don't warn about system libraries found in
- // the same directory as -lc.
- if (strncmp(soname, "libc.so", 7) == 0)
- {
- const char* object_name = dynobj->name().c_str();
- const char* base = lbasename(object_name);
- if (base != object_name)
- this->system_library_directory_.assign(object_name,
- base - 1 - object_name);
- }
}
// Add this object to the cross-referencer if requested.
@@ -1967,17 +1954,6 @@ Input_objects::add_object(Object* obj)
return true;
}
-// Return whether an object was found in the system library directory.
-
-bool
-Input_objects::found_in_system_library_directory(const Object* object) const
-{
- return (!this->system_library_directory_.empty()
- && object->name().compare(0,
- this->system_library_directory_.size(),
- this->system_library_directory_) == 0);
-}
-
// For each dynamic object, record whether we've seen all of its
// explicit dependencies.