0

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?

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by quuba
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.