Rev 2997 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2997 | Rev 2998 | ||
---|---|---|---|
Line 227... | Line 227... | ||
227 | // kputint(sym_addr); |
227 | // kputint(sym_addr); |
228 | 228 | ||
229 | // r_ptr should point to a plt entry... |
229 | // r_ptr should point to a plt entry... |
230 | uint32_t pidx = (r_ptr - _plt_ent) / 2; |
230 | uint32_t pidx = (r_ptr - _plt_ent) / 2; |
231 | if (pidx >= plt_n) { |
231 | if (pidx >= plt_n) { |
232 | kputint(0xee00ee0ee00); |
232 | kputint(0xee00ee00); |
233 | while(1); |
233 | while(1); |
234 | } |
234 | } |
235 | // _plt_table[pidx] = sym_addr; |
235 | // _plt_table[pidx] = sym_addr; |
236 | // kputint(pidx); |
236 | // kputint(pidx); |
237 | plt[18+2*pidx] = _b(sym_addr, &plt[18+2*pidx]); |
237 | plt[18+2*pidx] = _b((void *)sym_addr, &plt[18+2*pidx]); |
238 | // kputint(&plt[18]); |
238 | // kputint(&plt[18]); |
239 | // kputint(plt[18]); |
239 | // kputint(plt[18]); |
240 | // while(1); |
240 | // while(1); |
241 | // while(1); |
241 | // while(1); |
242 | //*r_ptr = sym_addr; |
242 | //*r_ptr = sym_addr; |