[PATCH] D35487: [ELF] - Represent .init_array/.fini_array via synthetic sections.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 17 08:24:28 PDT 2017
grimar created this revision.
Herald added a subscriber: emaste.
I suggest this change, it should open road for fixing PR31224.
This patch introduces InitFiniSection which holds
.init_array/.fini_array sections inside.
Idea is next: we can do the same for .ctors/.dtors in another patch.
Synthetic section for .ctors/.dtors should know how to
change sorting rules on fly depending on output section name.
Then it should be possible to mix .init_array/.ctors and .fini_array/.dtors,
like bfd/gold do easily.
https://reviews.llvm.org/D35487
Files:
ELF/Driver.cpp
ELF/LinkerScript.cpp
ELF/LinkerScript.h
ELF/SyntheticSections.cpp
ELF/SyntheticSections.h
ELF/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35487.106877.patch
Type: text/x-patch
Size: 8645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170717/c412e809/attachment.bin>
More information about the llvm-commits
mailing list