-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[LLD][ELF][AArch64] Discard .ARM.attributes sections #125838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// REQUIRES: aarch64 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps omit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ACK. |
||
// RUN: llvm-mc -triple=aarch64 %s -filetype=obj -o %t.o | ||
// RUN: ld.lld %t.o --shared -o %t.so | ||
// RUN: llvm-readelf --sections %t.so | FileCheck %s | ||
// RUN: ld.lld %t.o -o %t | ||
// RUN: llvm-readelf --sections %t | FileCheck %s | ||
// RUN: ld.lld -r %t.o -o %t2.o | ||
// RUN: llvm-readelf --sections %t2.o | FileCheck %s | ||
|
||
/// File has a Build attributes section. This should not appear in | ||
/// ET_EXEC or ET_SHARED files as there is no requirement for it to | ||
/// do so. FIXME, the ld -r (relocatable link) should output a single | ||
/// merged build attributes section. WHen full support is added in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo 'When' |
||
/// ld.lld this test should be updated. | ||
|
||
// CHECK-NOT: .ARM.attributes | ||
|
||
.aeabi_subsection aeabi_feature_and_bits, optional, uleb128 | ||
.aeabi_attribute Tag_Feature_BTI, 1 | ||
.aeabi_attribute Tag_Feature_PAC, 1 | ||
.aeabi_attribute Tag_Feature_GCS, 1 | ||
|
||
.global _start | ||
.type _start, %function | ||
_start: | ||
ret |
Uh oh!
There was an error while loading. Please reload this page.