llvm-project
c3bc30bd - [lld][macho] Error out gracefully when offset is outside literal section (#164660)

Commit
69 days ago
[lld][macho] Error out gracefully when offset is outside literal section (#164660) We typically shouldn't get this, but when we do (e.g. in #139439) we should error out gracefully instead of crashing. Note that we are stricter than ld64 here; ld64 appears to be able to handle section offsets that point outside literal sections if the end result is a valid pointer to another section in the input object file. Supporting this would probably be a pain given our current design, and it seems like enough of an edge case that it's onot worth it.
Author
Parents
Loading