This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]