Index: lld/ELF/RelocScan.h
--- lld/ELF/RelocScan.h.orig
+++ lld/ELF/RelocScan.h
@@ -87,6 +87,8 @@ void RelocScan::scan(typename Relocs<RelTy>::const_ite
   RelExpr expr =
       ctx.target->getRelExpr(type, sym, sec->content().data() + offset);
 
+  reportGNUWarning(ctx, sym, *sec, rel.r_offset);
+
   // Ignore R_*_NONE and other marker relocations.
   if (expr == R_NONE)
     return;
