[ELF] Simplify DynamicSection content computation. NFC
authorFangrui Song <i@maskray.me>
Thu, 25 Nov 2021 22:12:34 +0000 (14:12 -0800)
committerFangrui Song <i@maskray.me>
Thu, 25 Nov 2021 22:12:34 +0000 (14:12 -0800)
commit55c14d6dbfd8e7b86c15d2613fea3490078e2ae4
tree0f80938e409124b19fd7b77533a4abf911886855
parent536b9eb31e9333bcee3d20d694f7cb12d1ff3d89
[ELF] Simplify DynamicSection content computation. NFC

The new code computes the content twice, but avoides the tricky
std::function<uint64_t()>. Removed 13KiB code in a Release build.
lld/ELF/SyntheticSections.cpp
lld/ELF/SyntheticSections.h