Error while compiling for arm, thumb interwork

OP #1172165
Rate this post
• ▲ 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
Guest #1172166
Rate this post
• ▲ 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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.