MaskRay wrote:

> Hey Amir,
> 
> Thanks for the PR. Unfortunately, it is still failing. The trick below 
> doesn't seem to work on my buildbot machine:
> 
> > Link against a DSO to ensure PLT entries.
> 
> So doing:
> 
> ```shell
> nm --synthetic callcont-fallthru.s.tmp
> ```
> 
> won't list a `puts@plt` symbol, which is what causes an `link_fdata.py` 
> assertion:
> 
> > AssertionError: ERROR: symbol puts@plt is not defined in binary
> 
> On my dev AArch64 instance `--synthetic` does the trick. BTW run lines 4 and 
> 6 appear identical when inspected (`-###`)

You need a `libc.so` that defines `puts`, and then creates an executable that 
references `puts` and links against `libc.so`. Then the executable will have a 
PLT entry, and you do not need the `--unresolved-symbols=ignore-all` hack.

https://github.com/llvm/llvm-project/pull/135867
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to