This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: sh-elf: the substraction of two symbols
- To: kkojima at rr dot iij4u dot or dot jp
- Subject: Re: sh-elf: the substraction of two symbols
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- Date: Thu, 11 Jan 2001 14:56:45 +0100
- CC: binutils at sources dot redhat dot com
> 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