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?

is a comma allowed ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.