sh-elf: the substraction of two symbols

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Thu Jan 11 06:30:00 GMT 2001


> Date: Sat, 06 Jan 2001 09:40:15 +0900
> From: kaz Kojima <kkojima@rr.iij4u.or.jp>

> I have a problem with the sh-elf toolchain. Current as/ld for sh-elf
> doesn't handle the substraction of two symbols correctly, if these
> two symbols are in different sections.

I'll have to look at this more thoroughly, but thought I should
answer before too long.

You're changing the type of R_SH_REL32 to be partial_inplace
(about like it from RELA to REL) with further adjustments to
make *that* change work.  I think instead you should make gas
and the linker set rel->r_offset right for R_SH_REL32 and
section symbols.

brgds, H-P


More information about the Binutils mailing list