This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linker Error: Related to ENTRY Point

Note: This was originally posted on 31st August 2010 at http://forums.arm.com

Hi all,

I am using --entry=startup option with the armlink command.
The command I am using is:-
armlink  --cpu=cortex-m3 --entry=startup --scatter=xyz.scat -o abc.exe def.o abc.o --diag_suppress 6238

I get the following error:-

Error: L6204E: Entry point (0x00000290) does not point to an instruction.


In my assembly code, I have:-

        AREA ||.text.startup||, CODE, READONLY, ALIGN=2
label0
startup
        DCD      0x00000000
        DCD      label1
        DCD      label2
        DCD      label2
        DCD      label2
...
...
...


My scatter file has the following contents:-

LOAD_REGION 0x00000000 0x00200000
{
.text +0
{
  *.text.startup (+RO)
  * (+RO)
}

.data +0
{
  *.data (+RW)
  * (+RW)
}

.bss +0
{
  *.bss (+ZI)
  * (+ZI)
}
}


I am using RVDS 4.0 on a Win XP with cygwin environment.

Please guide me with this.

Regards
Abhinav Varma
Parents
  • Note: This was originally posted on 31st August 2010 at http://forums.arm.com

    Usually the entry point of an image points is executable code.  Armlink is probably wondering if your image's entry point should be marked as ARM or Thumb.  You've already found --diag_suppress; have you tried suppressing L6204 or downgrading it to a warning with --diag_warning?

    Also if you're expecting .text.startup to be the first section in the .text execution region, you will need to add +FIRST.
Reply
  • Note: This was originally posted on 31st August 2010 at http://forums.arm.com

    Usually the entry point of an image points is executable code.  Armlink is probably wondering if your image's entry point should be marked as ARM or Thumb.  You've already found --diag_suppress; have you tried suppressing L6204 or downgrading it to a warning with --diag_warning?

    Also if you're expecting .text.startup to be the first section in the .text execution region, you will need to add +FIRST.
Children
No data