For InputSection .foo, its InputBaseSection::{areRelocsRela,firstRelocation,numRelocation} basically
encode the information of .rel[a].foo. However, one uint32_t (the relocation section index)
suffices. See the implementation of relsOrRelas.
This change decreases sizeof(InputSection) from 184 to 176 on 64-bit Linux.
The maximum resident set size linking a large application (1.2G output) decreases by 0.39%.
May be worth a member function like bool areRelocsRel() const { return rels.size(); } that could be used instead of if (rels.rels.size()) not a strong opinion, may not be worth the change.