* commit '8c368b5d1d43bf5d9fdf1f6e99190437da882f95': Improve the dynamic linker diagnostics.
This commit is contained in:
		@@ -165,8 +165,8 @@ static char __linker_dl_err_buf[768];
 | 
			
		||||
#define DL_ERR(fmt, x...) \
 | 
			
		||||
    do { \
 | 
			
		||||
        format_buffer(__linker_dl_err_buf, sizeof(__linker_dl_err_buf), \
 | 
			
		||||
            "(%s:%d, pid %d) %s: " fmt,                                       \
 | 
			
		||||
            BASENAME(__FILE__), __LINE__, pid, __func__, ##x);                \
 | 
			
		||||
                      "%s(%s:%d): " fmt, \
 | 
			
		||||
                      __FUNCTION__, BASENAME(__FILE__), __LINE__, ##x); \
 | 
			
		||||
        ERROR(fmt "\n", ##x); \
 | 
			
		||||
    } while(0)
 | 
			
		||||
 | 
			
		||||
@@ -972,7 +972,7 @@ static int soinfo_relocate(soinfo *si, Elf32_Rel *rel, unsigned count,
 | 
			
		||||
                   reference..   */
 | 
			
		||||
                s = &symtab[sym];
 | 
			
		||||
                if (ELF32_ST_BIND(s->st_info) != STB_WEAK) {
 | 
			
		||||
                    DL_ERR("cannot locate \"%s\"...", sym_name);
 | 
			
		||||
                    DL_ERR("cannot locate symbol \"%s\" referenced by \"%s\"...", sym_name, si->name);
 | 
			
		||||
                    return -1;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user