[ELF] Add --rosegment to complement --no-rosegment
authorFangrui Song <maskray@google.com>
Thu, 30 Apr 2020 00:31:35 +0000 (17:31 -0700)
committerFangrui Song <maskray@google.com>
Thu, 30 Apr 2020 01:00:00 +0000 (18:00 -0700)
commite96d7b5e9ef00c4ea5dfbc8918c2db2c585b652b
tree73c0ae1f303a01713a0b0e7f6008faf115b238e0
parent2e090e4884d050b4c11fa8c14143c531be66211f
[ELF] Add --rosegment to complement --no-rosegment

This option can cancel --no-rosegment and it just seems right to have
a corresponding positive option for a --no-* negative option.

Anecdotally, gold had --rosegment but did not have --no-rosegment.
I added --no-rosegment (https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=9a6c68caa9543e09b064b7ac7c2b658f277bc19c) for binutils>=2.35
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/test/ELF/segments.s