[ELF] Hint -z nostart-stop-gc for __start_ undefined references
authorFangrui Song <i@maskray.me>
Thu, 2 Dec 2021 19:58:25 +0000 (11:58 -0800)
committerFangrui Song <i@maskray.me>
Thu, 2 Dec 2021 19:58:25 +0000 (11:58 -0800)
commit353fe72ca3d77f4bbe53132577a88424def172e8
tree7aaee6baa6f892a0c4d59945d48c75717bdc4c63
parent2f0a5714184cca9325004506a22a2a3193c825aa
[ELF] Hint -z nostart-stop-gc for __start_ undefined references

Make users aware what to do with ld.lld 13.0.0 / GNU ld<2015-10 --gc-sections
behavior.

Differential Revision: https://reviews.llvm.org/D114830
lld/ELF/Relocations.cpp
lld/docs/ELF/start-stop-gc.rst [new file with mode: 0644]
lld/docs/index.rst
lld/test/ELF/gc-sections-startstop-hint.s [new file with mode: 0644]