GNU bug report logs - #47715
[PATCH] gzip.c: use a more portable alignment

Previous Next

Package: gzip;

Reported by: "Dmitry V. Levin" <ldv <at> altlinux.org>

Date: Mon, 12 Apr 2021 00:22:01 UTC

Severity: normal

Tags: patch

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 47715 in the body.
You can then email your comments to 47715 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gzip <at> gnu.org:
bug#47715; Package gzip. (Mon, 12 Apr 2021 00:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Dmitry V. Levin" <ldv <at> altlinux.org>:
New bug report received and forwarded. Copy sent to bug-gzip <at> gnu.org. (Mon, 12 Apr 2021 00:22:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Dmitry V. Levin" <ldv <at> altlinux.org>
To: bug-gzip <at> gnu.org
Subject: [PATCH] gzip.c: use a more portable alignment
Date: Sun, 11 Apr 2021 20:00:00 +0000
The alignment of 8192 introduced by commit
be0c5581e38332b2ffa8a4cf92076cfde02872b4 is not quite portable:
eu-elflint --gnu-ld complains about the result gzip executable
with the following diagnostics:
section [25] '.bss' not fully contained in segment of program header entry 6

* gzip.c [__alignas_is_defined] (BUFFER_ALIGNED): Decrease alignment
from 8192 back to 4096.
---
 gzip.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gzip.c b/gzip.c
index 8b8b0bb..0123f82 100644
--- a/gzip.c
+++ b/gzip.c
@@ -132,10 +132,10 @@ static char const *const license_msg[] = {
 /* With IBM_Z_DFLTCC, DEFLATE COMPRESSION works faster with
    page-aligned input and output buffers, and requires page-aligned
    windows; the alignment requirement is 4096.  On other platforms
-   alignment doesn't hurt, and alignment up to 8192 is portable so
+   alignment doesn't hurt, and alignment up to 4096 is portable so
    let's do that.  */
 #ifdef __alignas_is_defined
-# define BUFFER_ALIGNED alignas (8192)
+# define BUFFER_ALIGNED alignas (4096)
 #else
 # define BUFFER_ALIGNED /**/
 #endif
-- 
ldv




Information forwarded to bug-gzip <at> gnu.org:
bug#47715; Package gzip. (Mon, 12 Apr 2021 01:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 47715 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "Dmitry V. Levin" <ldv <at> altlinux.org>
Cc: 47715 <at> debbugs.gnu.org
Subject: Re: bug#47715: [PATCH] gzip.c: use a more portable alignment
Date: Sun, 11 Apr 2021 18:28:52 -0700
Thanks, I installed that.




bug closed, send any further explanations to 47715 <at> debbugs.gnu.org and "Dmitry V. Levin" <ldv <at> altlinux.org> Request was from Jim Meyering <jim <at> meyering.net> to control <at> debbugs.gnu.org. (Fri, 13 Aug 2021 14:26:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 11 Sep 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 227 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.