section-relative relocs on ia64 (was: Re: Why does slurp_ia64_unwind_table complain unwind symbol type?)
David Mosberger
davidm@napali.hpl.hp.com
Wed Oct 27 10:03:00 GMT 2004
>>>>> On Tue, 26 Oct 2004 14:13:51 -0700, "H. J. Lu" <hjl@lucon.org> said:
HJ> Here is a patch.
Ah, that looks good (and easy).
HJ> H.J.
HJ> + /* Make output-section relative to section where the symbol
HJ> + is defined. PR 475 */
HJ> + value -= sym_sec->output_section->vma;
This is automatically guaranteed to never go negative, even for
corner-cases, such as weak symbols, right?
--david
More information about the Binutils
mailing list