Skip to content
Tcl Source Code Attachment Details
Login

Attachment Details

Overview

Artifact ID: 9364860f071dbe7eab209bb1706183075a246608c431ba17f3e598a826e0c81e
Ticket: 37108037b980ea6e705f56a9d983e05ee218dd0c
Date: 2022-08-12 23:20:29
User: jrtc27
Artifact Attached: aeff479a5cd2481a1252c542b69eaf644c209c69fd9ea24d445e6e9795274e66
Filename:0003-tclInt-Fix-TCL_ALIGN-for-CHERI-by-not-hard-coding-8-.patch
Description:[PATCH 3/8] tclInt: Fix TCL_ALIGN for CHERI by not hard-coding 8-byte alignment This is needed to support CHERI, and thus Arm's experimental Morello prototype, where pointers are implemented using unforgeable capabilities that include bounds and permissions metadata to provide fine-grained spatial and referential memory safety, as well as revocation by sweeping memory to provide heap temporal memory safety. These capabilities are twice the size of an integer address, or 16 bytes on a 64-bit system, and require that same alignment, so 8 bytes is not sufficient. Adjust the definition of TCL_ALIGN to compute the maximum alignment needed for long long, double and void *, which should be sufficient for Tcl's purposes. For backwards compatibility, in case anything is relying on a minimum of 8-byte alignment (since this is an exported interface), clamp this to a minimum of 8 so that this change only affects architectures that require even greater alignment.
Content:
(file is 0 bytes of binary data)