EmbDev.net

Forum: ARM programming with GCC/GNU tools Error while compiling for arm, thumb interwork


Author: Rushikesh Shingnapurkar (rushikeshs)
Posted on:

Rate this post
0 useful
not useful
Hello,

I am using WinARM.

I am using -mthumb-interwork option for some .c files which I need to
execure in ARM.
And I am using -mthumb for a .c file which I need to execute in thumb
mode.

My files are getting compiled correctly, but I am getting following
error while linking using arm-elf-ld
arm-elf-ld: internal error c:/winarms/binutils-060606/ld/ldlang.c 4260

What could be work around for this?

Thanks,

Rushikesh

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Rushikesh Shingnapurkar wrote:
> Hello,
>
> I am using WinARM.
>
> I am using -mthumb-interwork option for some .c files which I need to
> execure in ARM.
> And I am using -mthumb for a .c file which I need to execute in thumb
> mode.
>
> My files are getting compiled correctly, but I am getting following
> error while linking using arm-elf-ld
> arm-elf-ld: internal error c:/winarms/binutils-060606/ld/ldlang.c 4260

Can you tryp to build the examples that come with the WinARM package. A
lot of the examples use interwork so you can test if your basic setup
works. If yes, compare your source-files, makefile and linker-script
with the examples to find the difference. Did you use the
-mthumb-interwork option? Are the glue-sections included in the
linker-script?

Martin Thomas

Author: Rushikesh Shingnapurkar (rushikeshs)
Posted on:

Rate this post
0 useful
not useful
I will first check the examples.

For your questions,
Yes, I did use -mthumb-interwork
and  I had glue-sections in my linker script.

Thanks,

-Rushikesh Shingnapurkar

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.