aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-04-05 08:11:11 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-05 08:15:35 -0700
commit317974f6831d8c7af613257e190e0dc3125bc4cf (patch)
tree363e88c014db40a5b3f90fa48fb6807513f27ba5 /gas/write.c
parent20cc97536046f8aa883c3fba16aa1c9a2762f183 (diff)
downloadgdb-317974f6831d8c7af613257e190e0dc3125bc4cf.zip
gdb-317974f6831d8c7af613257e190e0dc3125bc4cf.tar.gz
gdb-317974f6831d8c7af613257e190e0dc3125bc4cf.tar.bz2
Xfail the compressed debug sections
There is no need to generate compressed debug section if compressed section size is the same as before compression. We should xfail the compressed debug section test if there are no compressed sections binutils/testsuite/ * binutils-all/compress.exp (compression_used): New. Xfail test if compression didn't make the section smaller. gas/ 2015-04-05 H.J. Lu <hongjiu.lu@intel.com> * write.c (compress_debug): Don't write the zlib header if compressed section size is the same as before compression.
Diffstat (limited to 'gas/write.c')
-rw-r--r--gas/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c
index 6a781ea..248255b 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1519,7 +1519,7 @@ compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED)
/* PR binutils/18087: If compression didn't make the section smaller,
just keep it uncompressed. */
- if (compressed_size > uncompressed_size)
+ if (compressed_size >= uncompressed_size)
return;
memcpy (header, "ZLIB", 4);