Lines Matching refs:rhs

305 	GElf_Phdr *rhs = (GElf_Phdr *)rp;  in gelf_phdr_compare()  local
311 if (lhs->p_type == PT_LOAD && rhs->p_type == PT_LOAD) { in gelf_phdr_compare()
312 if (lhs->p_vaddr != rhs->p_vaddr) { in gelf_phdr_compare()
316 if (rhs->p_vaddr == 0) in gelf_phdr_compare()
319 return (lhs->p_vaddr > rhs->p_vaddr ? 1 : -1); in gelf_phdr_compare()
330 if (lhs->p_type != rhs->p_type) { in gelf_phdr_compare()
334 if (rhs->p_type == PT_LOAD) in gelf_phdr_compare()
337 return (lhs->p_type > rhs->p_type ? 1 : -1); in gelf_phdr_compare()
344 if (lhs->p_offset != rhs->p_offset) in gelf_phdr_compare()
345 return (lhs->p_offset > rhs->p_offset ? 1 : -1); in gelf_phdr_compare()
854 Elf32_Sym *rhs = *((Elf32_Sym **)rp); in gelf32_sym_compare() local
856 if (lhs->st_value != rhs->st_value) in gelf32_sym_compare()
857 return (lhs->st_value > rhs->st_value ? 1 : -1); in gelf32_sym_compare()
859 if ((lhs->st_size == 0) != (rhs->st_size == 0)) in gelf32_sym_compare()
863 (ELF32_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in gelf32_sym_compare()
867 (ELF32_ST_BIND(rhs->st_info) == STB_WEAK)) in gelf32_sym_compare()
870 return (strcmp(gelf_strtab + lhs->st_name, gelf_strtab + rhs->st_name)); in gelf32_sym_compare()
882 Elf64_Sym *rhs = *((Elf64_Sym **)rp); in gelf64_sym_compare() local
884 if (lhs->st_value != rhs->st_value) in gelf64_sym_compare()
885 return (lhs->st_value > rhs->st_value ? 1 : -1); in gelf64_sym_compare()
887 if ((lhs->st_size == 0) != (rhs->st_size == 0)) in gelf64_sym_compare()
891 (ELF64_ST_TYPE(rhs->st_info) == STT_NOTYPE)) in gelf64_sym_compare()
895 (ELF64_ST_BIND(rhs->st_info) == STB_WEAK)) in gelf64_sym_compare()
898 return (strcmp(gelf_strtab + lhs->st_name, gelf_strtab + rhs->st_name)); in gelf64_sym_compare()