Issue 53073
Summary ld.lld -Map should dump the link map even if exiting with an error
Labels lld:ELF
Assignees
Reporter MaskRay
    ```
% rm -f a.map; ld.bfd a1.o a2.o -o /dev/null -Map a.map; ls a.map
ld.bfd: a2.o: in function `_shared':
(.text+0x1): undefined reference to `undef'
a.map
% rm -f a.map; ld.lld a1.o a2.o -o /dev/null -Map a.map; ls a.map
removed 'a.map'
ld.lld: error: undefined symbol: undef
>>> referenced by a2.o:(.text+0x1)
ls: cannot access 'a.map': No such file or directory
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to