diff options
Diffstat (limited to 'gas/write.c')
-rw-r--r-- | gas/write.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gas/write.c b/gas/write.c index 248255b..1ae47a9 100644 --- a/gas/write.c +++ b/gas/write.c @@ -1523,14 +1523,7 @@ compress_debug (bfd *abfd, asection *sec, void *xxx ATTRIBUTE_UNUSED) return; memcpy (header, "ZLIB", 4); - header[11] = uncompressed_size; uncompressed_size >>= 8; - header[10] = uncompressed_size; uncompressed_size >>= 8; - header[9] = uncompressed_size; uncompressed_size >>= 8; - header[8] = uncompressed_size; uncompressed_size >>= 8; - header[7] = uncompressed_size; uncompressed_size >>= 8; - header[6] = uncompressed_size; uncompressed_size >>= 8; - header[5] = uncompressed_size; uncompressed_size >>= 8; - header[4] = uncompressed_size; + bfd_putb64 (uncompressed_size, header + 4); /* Replace the uncompressed frag list with the compressed frag list. */ seginfo->frchainP->frch_root = first_newf; |