954,523 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Ld script syntax error

Im getting this problem with an ld script:

../Link.ld:8: syntax error


Here is the script:

/* Link.ld */
OUTPUT_FORMAT("binary")
ENTRY(start)
SECTIONS
{
  .text 0x100000 :
  {
    code = .; _code = ,; __code = .;
    *(.text)
    . = ALIGN(4096)
  }

  .data :
  {
    data = .; _data = .; __data = .;
    *(.data)
    . = ALIGN(4096);
  }

  .bss :
  {
    bss = .; _bss = .; __bss = .;
    *(.bss)
    . = ALIGN(4096);
  }

  end = .; _end = .; __end = ,;
}


What is wrong with the script?

jamesl22
Light Poster
36 posts since Feb 2010
Reputation Points: 10
Solved Threads: 1
 

is a comma allowed ?

quuba
Posting Pro
573 posts since Nov 2008
Reputation Points: 123
Solved Threads: 106
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You