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.