diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2021-04-11 20:00:00 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-04-11 18:24:37 -0700 |
commit | 23a870d14a49803c6d2579071886c1acf497c9d1 (patch) | |
tree | 4441f99ace1deb4260f4334561c80a6062fb60f0 /gzip.c | |
parent | 34db0a240e9d50dd6112f84155b677abfb409736 (diff) | |
download | gzip-23a870d14a49803c6d2579071886c1acf497c9d1.tar.gz |
bug#47715: [PATCH] gzip.c: use a more portable alignment
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.
Diffstat (limited to 'gzip.c')
-rw-r--r-- | gzip.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |