[all-commits] [llvm/llvm-project] 4d3d44: [LLD][ELF][AArch64] Discard .ARM.attributes sectio...
Peter Smith via All-commits
all-commits at lists.llvm.org
Fri Feb 7 16:14:23 PST 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 4d3d4445c67c02d34900d5e4160632e1a06b8df8
https://github.com/llvm/llvm-project/commit/4d3d4445c67c02d34900d5e4160632e1a06b8df8
Author: Peter Smith <peter.smith at arm.com>
Date: 2025-02-07 (Fri, 07 Feb 2025)
Changed paths:
M lld/ELF/InputFiles.cpp
A lld/test/ELF/aarch64-build-attributes.s
Log Message:
-----------
[LLD][ELF][AArch64] Discard .ARM.attributes sections (#125838)
LLVM has started to emit AArch64 build attributes sections called
.ARM.attributes. LLD does not yet have support for these so they are
accumulating in the ELF output. As the first part of that support
discard all the .ARM.attributes sections. This can be built upon by the
full implementation in LLD.
The build attributes specification only defines build attributes for
relocatable objects. The intention for LLD is that files of type ET_EXEC
and ET_SHARED will not have a build attributes in the output. A
relocatable link with -r will need a merged build attributes, but until
the merge is implemented it is better to discard.
(cherry picked from commit ba476d0b83dc8a4bbf066dc02a0f73ded27114f0)
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