Author: markj
Date: Sat Aug 24 21:00:39 2013
New Revision: 254808
URL: http://svnweb.freebsd.org/changeset/base/254808

Log:
  Remove some code that has been commented out since it was added in 2000.

Modified:
  head/sys/kern/link_elf.c

Modified: head/sys/kern/link_elf.c
==============================================================================
--- head/sys/kern/link_elf.c    Sat Aug 24 20:26:41 2013        (r254807)
+++ head/sys/kern/link_elf.c    Sat Aug 24 21:00:39 2013        (r254808)
@@ -702,16 +702,6 @@ link_elf_link_preload_finish(linker_file
        int error;
 
        ef = (elf_file_t) lf;
-#if 0  /* this will be more trouble than it's worth for now */
-       for (dp = ef->dynamic; dp->d_tag != DT_NULL; dp++) {
-               if (dp->d_tag != DT_NEEDED)
-                       continue;
-               modname = ef->strtab + dp->d_un.d_val;
-               error = linker_load_module(modname, lf);
-               if (error != 0)
-                       goto out;
-    }
-#endif
        error = relocate_file(ef);
        if (error != 0)
                return (error);
@@ -973,16 +963,6 @@ link_elf_load_file(linker_class_t cls, c
        vn_lock(nd.ni_vp, LK_EXCLUSIVE | LK_RETRY);
        if (error != 0)
                goto out;
-#if 0  /* this will be more trouble than it's worth for now */
-       for (dp = ef->dynamic; dp->d_tag != DT_NULL; dp++) {
-               if (dp->d_tag != DT_NEEDED)
-                       continue;
-               modname = ef->strtab + dp->d_un.d_val;
-               error = linker_load_module(modname, lf);
-               if (error != 0)
-                       goto out;
-    }
-#endif
        error = relocate_file(ef);
        if (error != 0)
                goto out;
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to