LD error message

Guest #1475624
Hello,

I installed the newest yagarto. Downloaded the AT91bootstrap v1.14 from 
the Atmel site: 
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4093

CD to C:\Bootstrap-v1.14\board\at91sam9g20\nandflash
make

I get the following error:
c:/yagarto/bin/../lib/gcc/arm-elf/4.4.2/../../../../arm-elf/bin/ld.exe: 
section
.eh_frame [00200e64 -> 002010db] overlaps section .data [00200e64 -> 
00200f27]
collect2: ld returned 1 exit status
make: *** [nandflash_at91sam9g20ek] Error 1

What did I do wrong? How can I fix this?

Thank you,
Dan
You have omitted the part of the log that shows the linker invocation, 
which would have been useful.

Are you sure that the linker script is correct for your target. You 
appear to have two sections at the same location.

I believe that the eh_frame is related to C++ exception handling, but 
are you using C++? Even if you are, are you using exception handling? If 
not use the -fno-exceptions compiler option.
Guest
If you are using a linker script (and you should be) you need to add a 
section for the exception handlers. This can be in uninitialized RAM 
memory.

  . = ALIGN(4);
  .eh_frame :
  {
       KEEP (*(.eh_frame))
  } > ram


In the MEMORY section you should have a definition for the "ram" area 
similar to the following:

  ram  : ORIGIN = 0x40000200, LENGTH = 32513

Reply

A question of your own? This thread is over 16 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

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.