public static void warnExternalOffsetRelocation(Program program, Address relocationAddress,
			Address symbolAddr, String symbolName, long adjustment, MessageLog log) {

		if (symbolAddr == null || adjustment == 0 ||
			!program.getMemory().isExternalBlockAddress(symbolAddr)) {
			return;
		}

		MemoryBlock block = program.getMemory().getBlock(relocationAddress);

		boolean showAsError = block == null || block.isExecute();

		String sign = "+";
		if (adjustment < 0) {
			adjustment = -adjustment;
			sign = "-";
		}
		String adjStr = sign + "0x" + Long.toHexString(adjustment);

		symbolName = StringUtils.isEmpty(symbolName) ? ElfSymbol.FORMATTED_NO_NAME : symbolName;
		String msg1 = "EXTERNAL Data ELF Relocation with offset: at " + relocationAddress +
			" (External Location = " + symbolName + adjStr + ")";
		if (showAsError) {
			Msg.error(ElfRelocationHandler.class, msg1);
		}
		else {
			Msg.warn(ElfRelocationHandler.class, msg1);
		}
		if (block != null) {
			BookmarkManager bookmarkManager = program.getBookmarkManager();
			bookmarkManager.setBookmark(relocationAddress, BookmarkType.WARNING,
				"EXTERNAL Relocation",
				"EXTERNAL Data ELF Relocation with offset: External Location = " + symbolName +
					adjStr);
		}
	}
Determine if symbolAddr is contained within the EXTERNAL block with a non-zero adjustment.  
If so, relocationAddress will be marked with a <code>EXTERNAL Data Elf Relocation with pointer-offset</code> 
warning or error bookmark.  Bookmark and logged message will be conveyed as an error if 
relocationAddress resides within an executable memory block.
<br>
NOTE: This method should only be invoked when the symbol offset will be adjusted with a non-zero 
value (i.e., addend).

@param program program
@param relocationAddress relocation address to be bookmarked if EXTERNAL block relocation
@param symbolAddr symbol address correspondng to relocation (may be null)
@param symbolName symbol name (may not be null if symbolAddr is not null)
@param adjustment relocation symbol offset adjustment/addend
@param log import log
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/relocation/ElfRelocationHandler.java