This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Bug in ia64 trampoline
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Mon, 3 Mar 2003 22:30:18 -0800
- Subject: Bug in ia64 trampoline
While looking at elfNN_ia64_relax_section, I don't see how it can reuse the
trampoline without checking r_addend. The relaxation code creates a trampoline
and reuse the old relocation by modifying r_info and r_offset
irel->r_info = ELFNN_R_INFO (ELFNN_R_SYM (irel->r_info),
R_IA64_PCREL60B);
irel->r_offset = trampoff + 2;
A relocation will be applied at the trampoline with r_addend. When it cherks a
trampoline can be reuse, it doesn't check r_addend at all. Did I miss
something?
H.J.