resolved conflicts for merge of c191a8ad to lmp-dev-plus-aosp
				
					
				
			Change-Id: I24dcf9701ebe3344796f757a596754cbefbf358a
This commit is contained in:
		@@ -525,6 +525,15 @@ static ElfW(Sym)* soinfo_do_lookup(soinfo* si, const char* name, soinfo** lsi, s
 | 
				
			|||||||
                *lsi = si;
 | 
					                *lsi = si;
 | 
				
			||||||
                goto done;
 | 
					                goto done;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            /* Next, look for it in the preloads list */
 | 
				
			||||||
 | 
					            for (int i = 0; g_ld_preloads[i] != NULL; i++) {
 | 
				
			||||||
 | 
					                s = soinfo_elf_lookup(g_ld_preloads[i], elf_hash, name);
 | 
				
			||||||
 | 
					                if (s != NULL) {
 | 
				
			||||||
 | 
					                    *lsi = g_ld_preloads[i];
 | 
				
			||||||
 | 
					                    goto done;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            /* Order of symbol lookup is controlled by DT_SYMBOLIC flag */
 | 
					            /* Order of symbol lookup is controlled by DT_SYMBOLIC flag */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -542,6 +551,15 @@ static ElfW(Sym)* soinfo_do_lookup(soinfo* si, const char* name, soinfo** lsi, s
 | 
				
			|||||||
                    *lsi = somain;
 | 
					                    *lsi = somain;
 | 
				
			||||||
                    goto done;
 | 
					                    goto done;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                /* Next, look for it in the preloads list */
 | 
				
			||||||
 | 
					                for (int i = 0; g_ld_preloads[i] != NULL; i++) {
 | 
				
			||||||
 | 
					                    s = soinfo_elf_lookup(g_ld_preloads[i], elf_hash, name);
 | 
				
			||||||
 | 
					                    if (s != NULL) {
 | 
				
			||||||
 | 
					                        *lsi = g_ld_preloads[i];
 | 
				
			||||||
 | 
					                        goto done;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            /* Look for symbols in the local scope (the object who is
 | 
					            /* Look for symbols in the local scope (the object who is
 | 
				
			||||||
@@ -573,18 +591,18 @@ static ElfW(Sym)* soinfo_do_lookup(soinfo* si, const char* name, soinfo** lsi, s
 | 
				
			|||||||
                    *lsi = somain;
 | 
					                    *lsi = somain;
 | 
				
			||||||
                    goto done;
 | 
					                    goto done;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
                /* Next, look for it in the preloads list */
 | 
					                /* Next, look for it in the preloads list */
 | 
				
			||||||
    for (int i = 0; g_ld_preloads[i] != nullptr; i++) {
 | 
					                for (int i = 0; g_ld_preloads[i] != NULL; i++) {
 | 
				
			||||||
                    s = soinfo_elf_lookup(g_ld_preloads[i], elf_hash, name);
 | 
					                    s = soinfo_elf_lookup(g_ld_preloads[i], elf_hash, name);
 | 
				
			||||||
        if (s != nullptr) {
 | 
					                    if (s != NULL) {
 | 
				
			||||||
                        *lsi = g_ld_preloads[i];
 | 
					                        *lsi = g_ld_preloads[i];
 | 
				
			||||||
                        goto done;
 | 
					                        goto done;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    for (int i = 0; needed[i] != nullptr; i++) {
 | 
					    for (int i = 0; needed[i] != nullptr; i++) {
 | 
				
			||||||
        DEBUG("%s: looking up %s in %s",
 | 
					        DEBUG("%s: looking up %s in %s",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user