projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78e2d4e
)
libbb: align bb_common_bufsiz1 to "long long"
author
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 27 Sep 2007 20:46:08 +0000
(20:46 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Thu, 27 Sep 2007 20:46:08 +0000
(20:46 -0000)
libbb/messages.c
patch
|
blob
|
history
diff --git
a/libbb/messages.c
b/libbb/messages.c
index 0e43ab6748f7189fb5bd5d50cd8890b9d21d9b87..a64aa405e869479828ed508d62786ffec9922146 100644
(file)
--- a/
libbb/messages.c
+++ b/
libbb/messages.c
@@
-65,7
+65,10
@@
const char bb_path_wtmp_file[] ALIGN1 =
#error unknown path to wtmp file
#endif
-char bb_common_bufsiz1[COMMON_BUFSIZE];
+/* We use it for "global" data via *(struct global*)&bb_common_bufsiz1.
+ * Since gcc insists on aligning struct global's members, it would be a pity
+ * (and an alignment fault on some CPUs) to mess it up. */
+char bb_common_bufsiz1[COMMON_BUFSIZE] __attribute__(( aligned(sizeof(long long)) ));
struct globals;
/* Make it reside in R/W memory: */