[all-commits] [llvm/llvm-project] 180786: [lld][ELF] Handle archive special casing in Input ...
amosher-nvidia via All-commits
all-commits at lists.llvm.org
Fri Jan 10 19:30:59 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 18078605046c50f01f31e826ea3591f99019de38
https://github.com/llvm/llvm-project/commit/18078605046c50f01f31e826ea3591f99019de38
Author: amosher-nvidia <amosher at nvidia.com>
Date: 2025-01-10 (Fri, 10 Jan 2025)
Changed paths:
M lld/ELF/LinkerScript.cpp
M lld/ELF/LinkerScript.h
M lld/test/ELF/linkerscript/filename-spec.s
Log Message:
-----------
[lld][ELF] Handle archive special casing in Input Sections (#119293)
According to the binutils spec:
https://sourceware.org/binutils/docs/ld/Input-Section-Basics.html
You should be able to specify all files in an archive using this syntax
`archivename:` , however, lld currently will only accept `archivename:*`
to match all files within an archive.
This patch will, only when necessary, create a copy of the file
specification and add an implicit wildcard `*` to the end. It also
updates the filename-spec linkerscript test to check for this behavior.
---------
Co-authored-by: Peter Smith <peter.smith at arm.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list