[PATCH] D91187: [ELF] Make SORT_INIT_PRIORITY support .ctors.N

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 10:24:51 PST 2020


MaskRay created this revision.
MaskRay added reviewers: grimar, psmith.
Herald added subscribers: llvm-commits, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay requested review of this revision.

This allows `SORT_BY_INIT_PRIORITY(.init_array.* .ctors.*)` to mix
`.init_array.*` and `.ctors.*`, which can be used to emulate the behavior of
GNU ld's internal linker script.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91187

Files:
  lld/ELF/OutputSections.cpp
  lld/test/ELF/linkerscript/sort-init.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91187.304249.patch
Type: text/x-patch
Size: 3130 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201110/f3d1fa53/attachment.bin>


More information about the llvm-commits mailing list