r_bin: temporary fix for #840 (ELF relation handling)

(Marked as temporary because I haven't understood the bug and calling
`imports` from `relocs` looks wrong.)