https://sourceware.org/bugzilla/show_bug.cgi?id=17900

            Bug ID: 17900
           Summary: INCLUDE fails if exclamation mark is not followed by a
                    space
           Product: binutils
           Version: 2.24
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: 1500 at engineer dot com

See
http://stackoverflow.com/questions/19252128/how-to-use-the-include-command-in-ld-linker-script?answertab=active#tab-top


If a linker script that is INCLUDEd contains a MEMORY region:

MEMORY
{
  rom (rx) : ORIGIN = 0x00000000, LENGTH = 64M
  ram (!rx) : ORIGIN = 0x48000000, LENGTH = 32M
}

parsing will fail. Adding a space after the exclamation mark fixes the issue:

MEMORY
{
  rom (rx) : ORIGIN = 0x00000000, LENGTH = 64M
  ram (! rx) : ORIGIN = 0x48000000, LENGTH = 32M
}

This extra space is not required when the contents are not INCLUDEd but just
pasted together in one text file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to