You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
An assigned call result, x = f(...) where f returns an aggregate, is built in the variable where finding the place reads nothing, a local variable or record fields reached from one by ., in place of a temporary copied into it (#5083).
macOS images state the section types and attributes the platform linker writes for string, literal and selector-reference sections, where every such section was written as plain data. No image failed to load because of it. Through mink 0.3.0.
Through mirl 0.6.0 the optimizer vectorises and folds inside constant-time functions where the proof still holds, judged per target, and removes a store nothing reads across blocks for a slot whose address never escapes.
Breaking: the linker refuses a reference past the end of a merged section, a Mach-O difference whose two sides are both named by a section or whose subtracting side lies in a merged section, and on x86_64 a call through an objc_msgSend$ stub, saying to rebuild the archive without -fobjc-msgsend-selector-stubs. lld refuses each. Through mink 0.3.0.
Builds against mink 0.3.0, masc 0.2.4, mirl 0.6.0 and std 10.3.0.
Fixed
Linking a C or Objective-C archive on macOS could silently give wrong string pointers. When a string section of such an object held a named local symbol, as clang makes for a static const char x[], every reference after it was resolved without being mapped through the merged strings, so it pointed at the wrong string. It shows mainly on Intel macOS. Every 7.x release through 7.3.1 has it. Objects made by mach were not affected, so a program built only from Mach source was never wrong. Fixed through mink 0.3.0.
Linking such archives on macOS was also refused in three ways, all fixed through mink 0.3.0: a reference to an empty string literal, refused with "a place lies in no entry of a merged section", the relocation form clang emits for relative lookup tables, and on Apple Silicon a call through an objc_msgSend$<selector> stub, which the linker now makes (#4984).
On aarch64 a tripped run-time check raises an illegal-instruction signal where it raised a trap signal, and a constant-time function that holds such a check is no longer refused. Through mirl 0.6.0.
On wasm a constant-time function with an early ret inside a loop is no longer refused as reading a slot no store reaches. Through mirl 0.6.0.
A function taking a 16-wide float vector by value under avx2 builds, where it was refused at selection, and every same-size vector bitcast selects on x86 and aarch64. Through mirl 0.6.0.
Inline assembly can name a scalar float or a narrow vector as the register operand of an SSE instruction, as in movss {o}, {x}, where it was refused. Through masc 0.2.4.
Issues resolved (2)
#5083 An assigned call result is built in a temporary and copied into the variable
#5091 Arming a lowering destination is repeated by hand at four sites