This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: Problem with pcrel relocs and addends
- From: "Will Newton" <will dot newton at imgtec dot com>
- To: "Andreas Schwab" <schwab at suse dot de>
- Cc: <binutils at sourceware dot org>
- Date: Thu, 3 Nov 2005 11:32:40 -0000
- Subject: RE: Problem with pcrel relocs and addends
> I think you are right, I was misinterpreting your example.
> Neither relocation should have an addend, unless the source
> has one, and the assembler is doing something wrong here.
> When I try the equivalent with the m68k-linux assembler I get this:
Thanks for clarifying this. The solution was that my definition of
md_pcrel_from_section() was incorrect. Tweaking it to avoid forced
relocs has fixed the problem.