public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] gas: Add support for LLVM addrsig and addrsig_sym.
@ 2022-06-23 15:13 Tatsuyuki Ishi
  2022-06-23 15:13 ` [PATCH v2 1/6] elf: Add definition for SHT_LLVM_ADDRSIG Tatsuyuki Ishi
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Tatsuyuki Ishi @ 2022-06-23 15:13 UTC (permalink / raw)
  To: binutils

LLVM's addrsig extension [1] allows the compiler to pass on information
about whether a symbol's address is taken to the linker, which in turns
use this info to perform (safe) Identical Code Folding optimization at
link-time.

This patch adds support for the relevant LLVM assembler directives,
which is a prerequisite for GCC support of the feature.

v2 includes patch to objcopy and ld -r to discard the .llvm_addrsig
section, in order to prevent linkers to get corrupted input now that
the SH_LINK heuristic they use is supplied with the proper value.

Thanks Alan Modra, Fangrui Song and Jan Beulich for reviewing the last
revision of the patch.

[1]: https://llvm.org/docs/Extensions.html#sht-llvm-addrsig-section-address-significance-table




^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-06-30 21:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 15:13 [PATCH v2 0/6] gas: Add support for LLVM addrsig and addrsig_sym Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 1/6] elf: Add definition for SHT_LLVM_ADDRSIG Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 2/6] bfd: Output SH_LINK to .symtab " Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 3/6] objcopy: Remove SHT_LLVM_ADDRSIG sections by default Tatsuyuki Ishi
2022-06-23 15:40   ` Jan Beulich
2022-06-24  5:28     ` Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 4/6] ld: Discard LLVM_ADDRSIG sections Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 5/6] gas: Add support for LLVM addrsig and addrsig_sym directives on ELF Tatsuyuki Ishi
2022-06-23 15:13 ` [PATCH v2 6/6] gas: Add basic test for addrsig Tatsuyuki Ishi
2022-06-28  9:20 ` [PATCH v2 0/6] gas: Add support for LLVM addrsig and addrsig_sym Alan Modra
2022-06-29  1:27   ` Tatsuyuki Ishi
2022-06-29  2:56     ` Alan Modra
2022-06-30 20:59       ` Fangrui Song

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).