aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-03-01 07:27:38 +0000
committerCary Coutant <ccoutant@google.com>2012-03-01 07:27:38 +0000
commita1fb425606ae491c34cf7bde513452e62814b00e (patch)
tree3604df3e6a4a9a915327b8aaf5065379c9660cde
parentf0fed3a3b634b8c5991947dc472d9a8e5a65d7b6 (diff)
downloadgdb-a1fb425606ae491c34cf7bde513452e62814b00e.zip
gdb-a1fb425606ae491c34cf7bde513452e62814b00e.tar.gz
gdb-a1fb425606ae491c34cf7bde513452e62814b00e.tar.bz2
* object.cc (need_decompressed_section): Add #ifdef ENABLE_THREADS.
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/object.cc4
2 files changed, 8 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 08a69c0..df015ac 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,5 +1,9 @@
2012-02-29 Cary Coutant <ccoutant@google.com>
+ * object.cc (need_decompressed_section): Add #ifdef ENABLE_THREADS.
+
+2012-02-29 Cary Coutant <ccoutant@google.com>
+
* dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
Call Object::decompressed_section_contents.
* dwarf_reader.h (Sized_dwarf_line_info::~Sized_dwarf_line_info):
diff --git a/gold/object.cc b/gold/object.cc
index f30354e..2b4fe02 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -550,6 +550,8 @@ Sized_relobj_file<size, big_endian>::find_eh_frame(
return false;
}
+#ifdef ENABLE_THREADS
+
// Return TRUE if this is a section whose contents will be needed in the
// Add_symbols task.
@@ -564,6 +566,8 @@ need_decompressed_section(const char* name)
return false;
}
+#endif
+
// Build a table for any compressed debug sections, mapping each section index
// to the uncompressed size and (if needed) the decompressed contents.