bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/28198] New: ld: Support # as linker script comment marker


From: i at maskray dot me
Subject: [Bug ld/28198] New: ld: Support # as linker script comment marker
Date: Thu, 05 Aug 2021 19:02:03 +0000

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

            Bug ID: 28198
           Summary: ld: Support # as linker script comment marker
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: i at maskray dot me
  Target Milestone: ---

Looks like # is supported in version scripts and the VERSION command in a
linker script, but is unsupported outside of VERSION.

VERSION {
# meow meow
GLIBC_2.2.5 { global: __free_hook; local: *; };
GLIBC_2.2.6 { global: __nanosleep; local: *; };
}

ld.bfd a.o -T a.ver -shared

Moving the comment outside:

% ld.bfd a.o -T a.ver -shared -o a.so                                           
ld.bfd:a.ver:1: ignoring invalid character `#' in expression
ld.bfd:a.ver:1: syntax error


gold and ld.lld support # outside of VERSION in a linker script.

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