[gold patch] Decompress sections in Read_symbols task
Cary Coutant
ccoutant@google.com
Thu Mar 1 07:22:00 GMT 2012
> Lacking ENABLE_THREADS leads to
> gold/object.cc:557:1: error: ‘bool gold::need_decompressed_section(const char*)’ defined but not used [-Werror=unused-function]
> cc1plus: all warnings being treated as errors
Arg, sorry. Fixed with the following patch...
-cary
* object.cc (need_decompressed_section): Add #ifdef ENABLE_THREADS.
Index: object.cc
===================================================================
RCS file: /cvs/src/src/gold/object.cc,v
retrieving revision 1.152
diff -u -p -r1.152 object.cc
--- object.cc 29 Feb 2012 21:22:29 -0000 1.152
+++ object.cc 1 Mar 2012 07:20:23 -0000
@@ -550,6 +550,8 @@ Sized_relobj_file<size, big_endian>::fin
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* na
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.
More information about the Binutils
mailing list