m4b/faerie

S_ATTR_PURE_INSTRUCTIONS incorrectly specified

bjorn3 opened this issue · 1 comments

Some(S_ATTR_PURE_INSTRUCTIONS | S_ATTR_SOME_INSTRUCTIONS),

Cranelift puts jump tables right next to the code, so the __text section will contain non instruction data when using jump tables.

Quoting @philipc

From a brief look, lld always outputs S_ATTR_PURE_INSTRUCTIONS for __TEXT,__text, regardless of what the input object files specified.