114,10 → 114,10 |
|
/* .PLTi, i = 0..N-1 */ |
// kputint(-4); |
for (i = 0; i < plt_n; ++i) { |
/* for (i = 0; i < plt_n; ++i) { |
//_plt_table[i] == function address; |
plt[18+i] = _b(_plt_call, &plt[18+i]); // b .PLTcall |
} |
}*/ |
} |
|
void rel_table_process(module_t *m, elf_rel_t *rt, size_t rt_size) |
213,7 → 213,8 |
//kputint(0xee00ee0ee00); |
while(1); |
} |
_plt_table[pidx] = sym_addr; |
//_plt_table[pidx] = sym_addr; |
plt[18+2*pidx] = _b(sym_addr, &plt[18+2*pidx]); |
break; |
|
case R_PPC_ADDR32: |
226,7 → 227,7 |
*r_ptr = r_addend + m->bias; |
break; |
case R_PPC_REL24: |
printf("ignore R_PPC_RELATIVE\n"); |
printf("ignore R_PPC_REL24\n"); |
/*TODO*/ |
break; |
} |