static byte getFlags(Relocation.Status status, int byteLength) {
		if (byteLength < 0 || byteLength > LENGTH_MAX) {
			throw new IllegalArgumentException("unsupport byte-length: " + byteLength);
		}
		int flags = (status.getValue() & STATUS_FLAGS_MASK);
		flags |= byteLength << LENGTH_FLAGS_SHIFT;
		return (byte) flags;
	}
Generate flags value for specified status and original bytes length for relocation.
@param status relocation status
@param byteLength byte length (specify 0 if bytes length is known, otherwise 1..31)
@return flags value
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/reloc/RelocationDBAdapter.java