This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


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

Re: ARM Assembler problem


Jonathan Larmour wrote:
> 
> Andreas Bürgel wrote:
> >
> > I've got following problem with GNU arm-elf-as (Host: i686-linux,
> > Target: ARM7TDMI):
> [snip]
> > As you can see the assembler computed a wrong target address (opcode
> [snip]
> 
> If this isn't binutils 2.10.1, try that instead. If that fails similarly,
> try the list binutils@sources.redhat.com (see
> http://sources.redhat.com/binutils ). The ARM gas maintainers lurk there.

I should have thought more before speaking actually. I quickly tried it and
realised what your problem is.... you are assuming that the output of the
assembler is something that can be used directly. It is not, it is an
intermediate object file (.o file).

Even though it *seems* easy enough for the assembler to just use a relative
branch, it is still left up to the linker to actually fill in the
relocations.

So once you have linked your program, the disassembly should be what you
expect.

Jifl
-- 
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow."  ||  These opinions are all my own fault

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