bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/19326] New: Swift linker script unparsable


From: markus at trippelsdorf dot de
Subject: [Bug gold/19326] New: Swift linker script unparsable
Date: Fri, 04 Dec 2015 07:47:57 +0000

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

            Bug ID: 19326
           Summary: Swift linker script unparsable
           Product: binutils
           Version: 2.27 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: markus at trippelsdorf dot de
                CC: ian at airs dot com
  Target Milestone: ---

The Swift language uses a linker script when building binaries.
Unfortunately gold cannot parse it. ld.bfd is fine:

address@hidden x86_64 % cat swift.ld
SECTIONS
{
  .swift2_protocol_conformances :
  {
    .swift2_protocol_conformances_start = . ;
    QUAD(SIZEOF(.swift2_protocol_conformances) - 8) ;
    *(.swift2_protocol_conformances) ;
  }
}
INSERT AFTER .dtors

address@hidden x86_64 % ld.bfd -T swift.ld
ld.bfd: no input files

address@hidden x86_64 % ld.gold -T swift.ld
ld.gold: error: swift.ld:10:8: syntax error, unexpected STRING
ld.gold: fatal error: unable to parse script file swift.ld

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]