Issue |
130472
|
Summary |
llvm-objcopy regression: Invalid iOS Mach-O: __TEXT segment fileoffset is not zero
|
Labels |
new issue
|
Assignees |
|
Reporter |
TimNN
|
`llvm-objcopy good bad` on an iOS binary produces an output that it considered invalid by dyld.
`dyld_info bad` fails with:
```
bad [arm64]:
__TEXT segment fileoffset is not zero
```
This regressed in https://github.com/llvm/llvm-project/pull/120995, identified by `git bisect` and verified by reverting https://github.com/llvm/llvm-project/commit/1a830aa1fe1e88749b563fefe18382842e0cff90. cc @drodriguez
Steps to reproduce (sorry, don't have a version without Rust):
```shell
echo "fn main() {}" >> good.rs
# Rust version doesn't matter for this.
# Tested with the latest nightly & stable.
rustc --target=aarch64-apple-ios good.rs
llvm-objcopy good bad
# This is fine:
dyld_info good
# This fails:
dyld_info bad
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs