OMF(对象模块格式)长度字段显示不正确 [英] OMF(Object Module Format) length field appears incorrect

查看:146
本文介绍了OMF(对象模块格式)长度字段显示不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对OMF对象格式的PUBDEF记录感到困惑. 我的汇编器生成的结果表明记录为4000字节,但显然不是,为什么要这样做?

I am a little confused, with the PUBDEF record in the OMF object format. My assembler has generated a result which states the record is 4000 bytes, when it clearly is not so why would it do this?

OMF十六进制视图的图像

0xa0和0x0f是小尾数格式的记录长度,

The 0xa0 and 0x0f is the record length in little endian format,

请查看规格: http://pierrelib.pagesperso-orange. fr/exec_formats/OMF_v1.1.pdf

似乎也表明字符串的长度为零字节,并且在某一点上甚至只有零字符串长度而没有提供字符串.也许我读错文件了?我现在已经花了几个小时,正在苦苦挣扎.

It also appears to state that the strings are zero bytes in length and at one point even has just a zero string length with no string provided. Maybe I am reading the file wrong? I have spent hours now and am struggling.

如果我在编写链接程序时有人可以帮助我解决我的问题,并且不能不理解这一点继续进行.

If anyone can help me with my issue as I am writing a linker and cannot continue without understanding this.

谢谢

推荐答案

文件中没有PUBDEF记录.您似乎错误地计算了先前的记录大小:

There is no PUBDEF record in the file. You seem to have miscalculated the previous record size:

0000:80 THEADR
000e:88 CoMENT
0032:96 LNAMES
0041:98 SEGDEF
004B:98 SEGDEF
0055:88 COMENT
005C:a0 LEDATA
006E:a0 LEDATA
007b:8a MODEND

学习使用更复杂的工具进行OMF检查,例如Tdump.exe或ODU.exe.

Learn to use more sofisticated tools for OMF inspection, such as Tdump.exe or ODU.exe.

这篇关于OMF(对象模块格式)长度字段显示不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆