public final Reference createExternalReference(Data data, String libraryName,
			String externalLabel, Address externalAddr) throws Exception {
		ReferenceManager referenceManager = currentProgram.getReferenceManager();
		Reference reference = referenceManager.addExternalReference(data.getMinAddress(),
			libraryName, externalLabel, externalAddr, SourceType.USER_DEFINED, 0, RefType.DATA);
		return reference;
	}
Creates an external reference from the given data.  The reference type {@link RefType#DATA}
will be used.
@param data the data
@param libraryName the name of the library being referred
@param externalLabel the name of function in the library being referred
@param externalAddr the address of the function in the library being referred
@return the newly created external reference
@throws Exception if an exception occurs
Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java