Print this page
10366 ld(1) should support GNU-style linker sets
10581 ld(1) should know kernel modules are a thing

@@ -1272,10 +1272,14 @@
 
                 if (ofl->ofl_aslr != 0)         /* DT_SUNW_ASLR */
                         cnt++;
         }
 
+        /* DT_SUNW_KMOD */
+        if (ofl->ofl_flags & FLG_OF_KMOD)
+                cnt++;
+
         /*
          * Account for Architecture dependent .dynamic entries, and defaults.
          */
         (*ld_targ.t_mr.mr_mach_make_dynamic)(ofl, &cnt);