Issue 60623
Summary [lld] Many "failed to compute relocation" warnings on duplicate symbol (coff/i386)
Labels new issue
Assignees
Reporter orgads
    Run the following in MINGW32 environment, and observe the warnings.

They appear for each file, on some cases it floods stderr...

```sh
echo 'int main() { return 0; }' | tee a.c > b.c
gcc -c a.c b.c
gcc -fuse-ld=lld a.o b.o
warning: failed to compute relocation: IMAGE_REL_I386_REL32, Invalid data was encountered while parsing the file
warning: failed to compute relocation: IMAGE_REL_I386_REL32, Invalid data was encountered while parsing the file
ld.lld: error: duplicate symbol: _main
>>> defined at a.o
>>> defined at b.o
collect2.exe: error: ld returned 1 exit status
```

This doesn't happen on 64-bit target.

CC @mstorsjo 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to