public int getSymbolIndex() { if (symbol != null) { return elf.getIndexOfSymbol(symbol); } else { return r_symndx; } }
public int store(OutputStream out) throws IOException { if (symbol != null) { r_symndx = elf.getIndexOfSymbol(symbol); } final long info; if (elf.isClass32()) { info = (r_type & 0xFF) | (r_symndx << 8); } else { info = ((long) r_type) | (((long) r_symndx) << 32); } int cnt = 0; cnt += StoreUtil.storeAddr(out, elf.e_ident, r_address); cnt += StoreUtil.storeXword(out, elf.e_ident, info); return cnt; }