Print this page
ld: implement -ztype and rework option parsing

@@ -1272,10 +1272,13 @@
 
                 if (ofl->ofl_aslr != 0)         /* DT_SUNW_ASLR */
                         cnt++;
         }
 
+        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);