[PATCH] D118840: [ELF] Support (TYPE=<value>) to customize the output section type

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 16 18:18:34 PST 2022


MaskRay added a comment.

GNU ld added the `(TYPE=...)` syntax today: https://sourceware.org/pipermail/binutils/2022-February/119789.html
... but it additionally added `.ro.note   (READONLY (TYPE=SHT_NOTE)) : { LONG(5678); }`.

I think `READONLY` is an ill advice and we should not follow.

This patch is compatible with GNU ld supported syntax and I think we can move forward.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118840



More information about the llvm-commits mailing list