dtolnay / linkme

Safe cross-platform linker shenanigans
Apache License 2.0
628 stars 42 forks source link

Limit on section name length on macOS #35

Closed crlf0710 closed 2 years ago

crlf0710 commented 3 years ago

This is the error message:

LLVM ERROR: Global variable '_ZN3tex12section_026570_LINKME_ELEMENT_put_each_of_tex_s_primitivies_into_the_hash_table_026517hd67dd207d79119b3E' has an invalid section specifier '__DATA,__PUT_EACH_OF_TEX_S_PRIMITIVIES_INTO_THE_HASH_TABLE': mach-o section specifier requires a section whose length is between 1 and 16 characters.

It seems there's a limit on the section name length.