For an InputSection, the buf argument of InputSectionBase::relocate points
to the content of the containing OutputSection, instead of the content of the
InputSection itself, so outSecOff needs to be added in its callees. This is
counter-intuitive and leads to many - outSecOff and + outSecOff.
This patch makes InputSection::writeTo call InputSectionBase::relocate with
outSecOff added. relocAlloc/relocNonAlloc/relocateNonAllocForRelocatable can
thus be simplified now.
Updated test:
- non-abs-reloc.s: A minor offset bug is fixed for a diagnostic in relocateNonAlloc
This is the only behavior difference (a bug fix).