https://sourceware.org/bugzilla/show_bug.cgi?id=29819
Bug ID: 29819 Summary: ld testsuite of --version-script relies on -L option Product: binutils Version: 2.40 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: mliska at suse dot cz CC: nickc at sourceware dot org Target Milestone: --- Apparently, as originally reported here: https://github.com/rui314/mold/issues/822 ld.{bfd,gold} load version scripts from paths that are specified with -L option: $ mkdir aaa $ echo "FOO {};" > aaa/aaa.map $ echo '' | gcc-12 -Wl,--version-script=aaa.map -shared -fPIC -Laaa -x c - (OK) Is it something documented or specified? The same behavior is mimicked by lld. -- You are receiving this mail because: You are on the CC list for the bug.