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:
parent
c5595f9dd0
commit
ef83592d2c
@ -878,7 +878,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rel < rellim) {
|
||||
symname = symbol_name(ef, rel->r_info);
|
||||
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;
|
||||
}
|
||||
rel++;
|
||||
@ -892,7 +892,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rela < relalim) {
|
||||
symname = symbol_name(ef, rela->r_info);
|
||||
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;
|
||||
}
|
||||
rela++;
|
||||
@ -906,7 +906,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rel < rellim) {
|
||||
symname = symbol_name(ef, rel->r_info);
|
||||
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;
|
||||
}
|
||||
rel++;
|
||||
@ -920,7 +920,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rela < relalim) {
|
||||
symname = symbol_name(ef, rela->r_info);
|
||||
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;
|
||||
}
|
||||
rela++;
|
||||
|
@ -878,7 +878,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rel < rellim) {
|
||||
symname = symbol_name(ef, rel->r_info);
|
||||
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;
|
||||
}
|
||||
rel++;
|
||||
@ -892,7 +892,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rela < relalim) {
|
||||
symname = symbol_name(ef, rela->r_info);
|
||||
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;
|
||||
}
|
||||
rela++;
|
||||
@ -906,7 +906,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rel < rellim) {
|
||||
symname = symbol_name(ef, rel->r_info);
|
||||
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;
|
||||
}
|
||||
rel++;
|
||||
@ -920,7 +920,7 @@ relocate_file(elf_file_t ef)
|
||||
while (rela < relalim) {
|
||||
symname = symbol_name(ef, rela->r_info);
|
||||
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;
|
||||
}
|
||||
rela++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user