Need help with arm-wince-pe failures

Zack Weinberg zack@codesourcery.com
Tue Jun 28 01:08:00 GMT 2005
Since I rewrote tc-arm.c we've been getting these failures in the GAS
testsuite for arm-wince-pe:

FAIL: ARM basic instructions (WinCE version)
FAIL: ARM arm7t (WinCE version)
FAIL: ARM architecture 4t instructions
FAIL: immediate expressions
FAIL: OFFSET_IMM regression

These are all off-by-8 in a PC-relative 'ldr' instruction.  There are
several places in tc-arm.c where offsets are adjusted by 8 for WinCE,
or conversely for all targets *but* WinCE.  I understand that the
calculation of some, but not all, PC-relative relocations for WinCE is
off by 8 compared to all other ARM targets.  What I don't know is
which ones, or why (I presume that we are trying to make GAS and GNU
ld do the same thing as the Microsoft toolchain, but that doesn't help
much, as I don't have access to that software).  Can anyone clarify
what should be done?

zw



More information about the Binutils mailing list