This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed, PATCH]: Make is_zlib_supported always return 1
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Fri, 3 Apr 2015 04:04:49 -0700
- Subject: [committed, PATCH]: Make is_zlib_supported always return 1
- Authentication-results: sourceware.org; auth=none
zlib is in binutils now. I checked in this patch to make
is_zlib_supported always return 1.
H.J.
---
* lib/binutils-common.exp (is_zlib_supported): Always return 1.
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog
index 5c85ba8..04dfa46 100644
--- a/binutils/testsuite/ChangeLog
+++ b/binutils/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2015-04-03 H.J. Lu <hongjiu.lu@intel.com>
+
+ * lib/binutils-common.exp (is_zlib_supported): Always return 1.
+
2015-04-02 Nick Clifton <nickc@redhat.com>
* binutils-all/readelf.ss-64: Move possible location of the $d
diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index 7540045..e989da4 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -154,27 +154,7 @@ proc is_elf64 { binary_file } {
# True if the build supports zlib compression.
proc is_zlib_supported {} {
-
- # This replicates the AS selection logic of dejagnu's target_assemble.
- global AS_FOR_TARGET
- if [info exists AS_FOR_TARGET] {
- set AS $AS_FOR_TARGET
- } else {
- if {![board_info target exists assembler]} {
- set AS [find_gas]
- } else {
- set AS [board_info target assembler]
- }
- }
-
- set as_output [remote_exec host "$AS --help"]
-
- set have_zlib 0
- if {[string first "--compress-debug-sections" $as_output] >= 0} {
- set have_zlib 1
- }
-
- return $have_zlib
+ return 1
}
# Compare two files line-by-line. FILE_1 is the actual output and FILE_2