We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 338c548 commit 68088c5Copy full SHA for 68088c5
macros/src/construct.rs
@@ -63,11 +63,12 @@ pub(crate) fn interned_string(
63
pub(crate) fn linker_section(for_macos: bool, prefix: Option<&str>, symbol: &str) -> String {
64
let symbol_hash = hash(symbol);
65
let suffix = if for_macos {
66
- // The Apple linker doesn't like `.` in input section names
+ // "mach-o section specifier requires a section whose length is between 1 and 16 characters."
67
if let Some(prefix) = prefix {
68
- format!(",{prefix}_{symbol_hash:x}")
+ let intermediate = format!("{prefix}_{symbol_hash:08x}");
69
+ format!(",{intermediate:.16}")
70
} else {
- format!(",{symbol_hash:x}")
71
+ format!(",{symbol_hash:08x}")
72
}
73
74
0 commit comments