projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c256588
)
Don't compress debug sections smaller than 32 bytes.
author
H.J. Lu
<hjl.tools@gmail.com>
Wed, 19 Jan 2011 00:24:23 +0000
(
00:24
+0000)
committer
H.J. Lu
<hjl.tools@gmail.com>
Wed, 19 Jan 2011 00:24:23 +0000
(
00:24
+0000)
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
* write.c (compress_debug): Return if section size is small than
32 byte.
gas/ChangeLog
patch
|
blob
|
history
gas/write.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index bb47e720f82a0ff3a87f254a5a9758fda6be69f0..d9cf957812a58642acee1f26ca478eba4c59a401 100644
(file)
--- a/
gas/ChangeLog
+++ b/
gas/ChangeLog
@@
-1,3
+1,8
@@
+2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ * write.c (compress_debug): Return if section size is smaller
+ than 32 bytes.
+
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
PR gas/12409
diff --git
a/gas/write.c
b/gas/write.c
index aabb96d236c569ce929aa7c1f9d47daf1ba95b4b..5f10bad2230d674f4ee5ec5379aee1b9a0f684c9 100644
(file)
--- a/
gas/write.c
+++ b/
gas/write.c
@@
-1359,7
+1359,7
@@
compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED)
flagword flags = bfd_get_section_flags (abfd, sec);
if (seginfo == NULL
- || sec->size
== 0
+ || sec->size
< 32
|| (flags & (SEC_ALLOC | SEC_HAS_CONTENTS)) == SEC_ALLOC)
return;