Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153179918
D20687.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
551 B
Referenced Files
None
Subscribers
None
D20687.diff
View Options
Index: head/sys/amd64/linux/linux_sysvec.c
===================================================================
--- head/sys/amd64/linux/linux_sysvec.c
+++ head/sys/amd64/linux/linux_sysvec.c
@@ -343,6 +343,12 @@
*/
vectp -= imgp->args->argc + 1 + imgp->args->envc + 1;
+ /*
+ * Starting with 2.24, glibc depends on a 16-byte stack alignment.
+ * One "long argc" will be prepended later.
+ */
+ vectp = (char **)((((uintptr_t)vectp + 8) & ~0xF) - 8);
+
/* vectp also becomes our initial stack base. */
stack_base = (register_t *)vectp;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 3:41 PM (6 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31786352
Default Alt Text
D20687.diff (551 B)
Attached To
Mode
D20687: Fix execution of linux binaries with glibc>=2.24
Attached
Detach File
Event Timeline
Log In to Comment