Bug in ia64 trampoline

H. J. Lu hjl@lucon.org
Tue Mar 4 06:30:00 GMT 2003
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.



More information about the Binutils mailing list