Remove some code that has been commented out since it was added in 2000.
This commit is contained in:
parent
bf2e93f1fe
commit
161330357c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=254808
@ -702,16 +702,6 @@ link_elf_link_preload_finish(linker_file_t lf)
|
||||
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, const char* filename,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user