bionic: linker: add error message if link failed due to previous error
Signed-off-by: Erik Gilling <konkers@android.com>
This commit is contained in:
parent
ac68b70ed9
commit
30eb40241c
@ -1085,7 +1085,10 @@ soinfo *find_library(const char *name)
|
|||||||
|
|
||||||
for(si = solist; si != 0; si = si->next){
|
for(si = solist; si != 0; si = si->next){
|
||||||
if(!strcmp(bname, si->name)) {
|
if(!strcmp(bname, si->name)) {
|
||||||
if(si->flags & FLAG_ERROR) return 0;
|
if(si->flags & FLAG_ERROR) {
|
||||||
|
DL_ERR("%5d '%s' failed to load previously", pid, bname);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
if(si->flags & FLAG_LINKED) return si;
|
if(si->flags & FLAG_LINKED) return si;
|
||||||
DL_ERR("OOPS: %5d recursive link to '%s'", pid, si->name);
|
DL_ERR("OOPS: %5d recursive link to '%s'", pid, si->name);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user