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]

Re: sh-elf: the substraction of two symbols


> 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

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