A linker will create .ARM.exidx sections for InputSections that don't have them. This can cause a relocation out of range error If the InputSection happens to be extremely far away from the other sections. This is often the case for the vector table on older ARM CPUs as the only two places that the table can be placed is 0 or 0xffff0000. We fix this by removing InputSections that need a linker generated .ARM.exidx section if that would cause an error.
Fixes part of pr44824 (https://bugs.llvm.org/show_bug.cgi?id=44824)
int64_t off = isec->getVA() - getVA();
Even better: add an explicit cast.