Do not use uprintf() for link time error messages. This has unpleasant

consequences when it happens in the preload support, before curproc or
the tty system exist.
This commit is contained in:
peter 2000-04-29 11:21:44 +00:00
parent 22b8c23cfa
commit 00f2105c72
2 changed files with 8 additions and 8 deletions

View File

@ -878,7 +878,7 @@ relocate_file(elf_file_t ef)
while (rel < rellim) { while (rel < rellim) {
symname = symbol_name(ef, rel->r_info); symname = symbol_name(ef, rel->r_info);
if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) { if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rel++; rel++;
@ -892,7 +892,7 @@ relocate_file(elf_file_t ef)
while (rela < relalim) { while (rela < relalim) {
symname = symbol_name(ef, rela->r_info); symname = symbol_name(ef, rela->r_info);
if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) { if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rela++; rela++;
@ -906,7 +906,7 @@ relocate_file(elf_file_t ef)
while (rel < rellim) { while (rel < rellim) {
symname = symbol_name(ef, rel->r_info); symname = symbol_name(ef, rel->r_info);
if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) { if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rel++; rel++;
@ -920,7 +920,7 @@ relocate_file(elf_file_t ef)
while (rela < relalim) { while (rela < relalim) {
symname = symbol_name(ef, rela->r_info); symname = symbol_name(ef, rela->r_info);
if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) { if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rela++; rela++;

View File

@ -878,7 +878,7 @@ relocate_file(elf_file_t ef)
while (rel < rellim) { while (rel < rellim) {
symname = symbol_name(ef, rel->r_info); symname = symbol_name(ef, rel->r_info);
if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) { if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rel++; rel++;
@ -892,7 +892,7 @@ relocate_file(elf_file_t ef)
while (rela < relalim) { while (rela < relalim) {
symname = symbol_name(ef, rela->r_info); symname = symbol_name(ef, rela->r_info);
if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) { if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rela++; rela++;
@ -906,7 +906,7 @@ relocate_file(elf_file_t ef)
while (rel < rellim) { while (rel < rellim) {
symname = symbol_name(ef, rel->r_info); symname = symbol_name(ef, rel->r_info);
if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) { if (elf_reloc(&ef->lf, rel, ELF_RELOC_REL, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rel++; rel++;
@ -920,7 +920,7 @@ relocate_file(elf_file_t ef)
while (rela < relalim) { while (rela < relalim) {
symname = symbol_name(ef, rela->r_info); symname = symbol_name(ef, rela->r_info);
if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) { if (elf_reloc(&ef->lf, rela, ELF_RELOC_RELA, symname)) {
uprintf("link_elf: symbol %s undefined\n", symname); printf("link_elf: symbol %s undefined\n", symname);
return ENOENT; return ENOENT;
} }
rela++; rela++;