[PATCH] D120045: [lld][ELF] support nested special directives in output sections

Luca Boccassi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 17 14:14:20 PST 2022


bluca added a comment.

In D120045#3330562 <https://reviews.llvm.org/D120045#3330562>, @MaskRay wrote:

> I added the `(TYPE=...)` syntax for the sole purpose that Fedora or systemd (https://github.com/systemd/package-notes) has a proper way to mark `.note*` sections `SHT_NOTE`.

And unless this fix or something along those lines is included too, it will not be used and it will serve no purpose whatsoever, . Note how this patch doesn't mention _any specific directive_ but it simply skips any unknown ones. See it as future proofing. It's not going to get any closer to what you want - take it or leave it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D120045/new/

https://reviews.llvm.org/D120045



More information about the llvm-commits mailing list