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

            Bug ID: 18048
           Summary: None-top-level INCLUDE not properly supported
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at google dot com
          Reporter: shenhan at google dot com
                CC: ian at airs dot com

We observed this problem building chromeos , I have a simplified case below - 

file: test.ld
SECTIONS
{
 INCLUDE "test-inc.ld"
}

file: test-inc.ld
.bss . : {
 . = ALIGN(8);
}

When specifying test.ld as linker script, gold errors - 
hdd2/gold64/build/gold/ld-new: error: test-inc.ld:1:6: syntax error, unexpected
STRING
hdd2/gold64/build/gold/ld-new: internal error in place_orphan, at
../../binutils-working/gold/script-sections.cc:3447

Replacing the INCLUDE statement with content from test-inc.ld makes gold happy.

-- 
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