int (*dl_elf_init) (void);
#endif
+ /* A bit of sanity checking... */
+ if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+ _dl_error_number = LD_BAD_HANDLE;
+ return NULL;
+ }
+
from = __builtin_return_address(0);
/* Have the dynamic linker use the regular malloc function now */
return goof;
tpnt->init_flag |= JMP_RELOCS_DONE;
- if (flag == RTLD_LAZY)
+ if (flag == RTLD_LAZY) {
_dl_parse_lazy_relocation_information(tpnt,
tpnt->dynamic_info[DT_JMPREL],
tpnt->dynamic_info[DT_PLTRELSZ], 0);
- else
+ } else {
goof += _dl_parse_relocation_information(tpnt,
tpnt->dynamic_info[DT_JMPREL],
tpnt->dynamic_info[DT_PLTRELSZ], 0);
+ }
};
return goof;
}
int (*dl_elf_init) (void);
#endif
+ /* A bit of sanity checking... */
+ if (!(flag & RTLD_LAZY|RTLD_NOW)) {
+ _dl_error_number = LD_BAD_HANDLE;
+ return NULL;
+ }
+
from = __builtin_return_address(0);
/* Have the dynamic linker use the regular malloc function now */
return goof;
tpnt->init_flag |= JMP_RELOCS_DONE;
- if (flag == RTLD_LAZY)
+ if (flag == RTLD_LAZY) {
_dl_parse_lazy_relocation_information(tpnt,
tpnt->dynamic_info[DT_JMPREL],
tpnt->dynamic_info[DT_PLTRELSZ], 0);
- else
+ } else {
goof += _dl_parse_relocation_information(tpnt,
tpnt->dynamic_info[DT_JMPREL],
tpnt->dynamic_info[DT_PLTRELSZ], 0);
+ }
};
return goof;
}