/* ###
 * IP: GHIDRA
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ghidra.app.util.bin.format.omf;

import java.io.IOException;
import java.nio.charset.StandardCharsets;

import ghidra.app.util.bin.BinaryReader;

public class OmfCommentRecord extends OmfRecord {
	public static final byte COMMENT_CLASS_TRANSLATOR = 0;
	public static final byte COMMENT_CLASS_LIBMOD = (byte) 0xA3;

	private byte commentType;
	private byte commentClass;
	private String value;
	
	public OmfCommentRecord(BinaryReader reader) throws IOException {
		readRecordHeader(reader);
		commentType = reader.readNextByte();
		commentClass = reader.readNextByte();
		byte[] bytes = reader.readNextByteArray(
			getRecordLength() - 3 /* 3 = sizeof(commentType+commentClass+trailing_crcbyte*/);

		if (commentClass == COMMENT_CLASS_TRANSLATOR || commentClass == COMMENT_CLASS_LIBMOD) {
			value = new String(bytes, StandardCharsets.US_ASCII); // assuming ASCII
		}
		readCheckSumByte(reader);
	}
	
	public byte getCommentClass() {
		return commentClass;
	}
	
	public String getValue() {
		return value;
	}
}

/* ###
 * IP: GHIDRA
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package ghidra.app.util.bin.format.omf;

import java.io.IOException;
import java.nio.charset.StandardCharsets;

import ghidra.app.util.bin.BinaryReader;

public class OmfCommentRecord extends OmfRecord {
	// Language translator comment
	public static final byte COMMENT_CLASS_TRANSLATOR = 0;
	// Record specifying name of object
	public static final byte COMMENT_CLASS_LIBMOD = (byte) 0xA3;
	// Default library cmd
	public static final byte COMMENT_CLASS_DEFAULT_LIBRARY = (byte) 0x9F;

	private byte commentType;
	private byte commentClass;
	private String value;
	
	public OmfCommentRecord(BinaryReader reader) throws IOException {
		readRecordHeader(reader);
		commentType = reader.readNextByte();
		commentClass = reader.readNextByte();
		byte[] bytes = reader.readNextByteArray(
			getRecordLength() - 3 /* 3 = sizeof(commentType+commentClass+trailing_crcbyte*/);

		if (commentClass == COMMENT_CLASS_TRANSLATOR || commentClass == COMMENT_CLASS_LIBMOD || commentClass == COMMENT_CLASS_DEFAULT_LIBRARY) {
			value = new String(bytes, StandardCharsets.US_ASCII); // assuming ASCII
		}
		readCheckSumByte(reader);
	}
	
	public byte getCommentClass() {
		return commentClass;
	}
	
	public String getValue() {
		return value;
	}
}

Add DEFAULT_LIBRARY to the comment class