Fix option no-rosegment for bugzilla #38784 * Prior to this revision, lld always groups read-only sections into executable segments. This decision might cause a huge executable size as described in the bugzilla. * This revision tries to group the following sections with the current segment if no-rosegment is on. * add a new test case: no-rosegment.s * modify 4 test cases accordingly.
Details
Details
- Reviewers
• espindola ruiu - Group Reviewers
lld
Diff Detail
Diff Detail
- Repository
- rLLD LLVM Linker
Event Timeline
Comment Actions
You'll wanna upload the patch with full context (http://llvm.org/docs/Phabricator.html).
Comment Actions
I made a comment in https://bugs.llvm.org/show_bug.cgi?id=38784
For your example, it is ld.bfd which creates a 2.1M executable, not lld