tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Changes to do rtld debug build in mips



On Sat, Dec 23, 2017 at 10:47:23PM +0000, coypu%sdf.org@localhost wrote:
>  		{
>  			Elf_Addr old = load_ptr(where, ELFSIZE / 8);
>  			Elf_Addr val = old;
>  
> +			Elf_Word r_symndx = ELF_R_SYM(rel->r_info);
> +
>  			val += (Elf_Addr)defobj->tlsindex;
>  
>  			store_ptr(where, val, ELFSIZE / 8);
>  			rdbg(("DTPMOD %s in %s --> %p in %s",
>  			    obj->strtab + obj->symtab[r_symndx].st_name,
>  			    obj->path, (void *)old, defobj->path));
>  			break;

Either use __debugused on the r_symndx declaration, or just replace
all uses with ELF_R_SYM(rel->r_info). Otherwise the non-debug build
should fail as r_symndx will be unused.

Just test both builds and commit!

Martin


Home | Main Index | Thread Index | Old Index