mold icon indicating copy to clipboard operation
mold copied to clipboard

elf: Support --warn-backrefs

Open MaskRay opened this issue 3 years ago • 1 comments

The GNU ld/gold semantics may feel weird for people coming from VMS, Mach-O ld64, Windows link.exe world, but it does have a nice property: https://maskray.me/blog/2021-06-13-dependency-related-linker-options#warn-backrefs

MaskRay avatar Dec 22 '21 09:12 MaskRay

I believe it can be implemented as an extra pass in which we simultaneously visit all symbols of all object files to see if there's an undefined symbol that back-refers other object file. It's not high priority, but it's nice to have.

rui314 avatar Dec 22 '21 12:12 rui314