private static boolean isValidRelocationAddress(Program program, Address target) {
		// If the program is relocatable, and this address is not one of the relocations
		//   can't be a pointer
		RelocationTable relocationTable = program.getRelocationTable();
		if (relocationTable.isRelocatable()) {
			// if it is relocatable, then there should be no pointers in memory, other than relacatable ones
			if (relocationTable.getSize() != 0 && !relocationTable.hasRelocation(target)) {
				return false;
			}
		}
		return true;
	}
Check if the address is in the Relocation table. This only counts for
relocatable programs. Every address should be in the relocation table.

@param target location to check
@return false if relocations are defined but not at the specified target address, 
otherwise true.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/AddressTable.java