[Nasm-bugs] [Bug 3392347] New: macho32 format bug: LC_SEGMENT command 0 filesize field greater than vmsize field
no-reply at bugzilla-nasm.gorcunov.org
no-reply at bugzilla-nasm.gorcunov.org
Fri Apr 8 00:19:23 PDT 2016
http://bugzilla.nasm.us/show_bug.cgi?id=3392347
Bug ID: 3392347
Summary: macho32 format bug: LC_SEGMENT command 0 filesize
field greater than vmsize field
Product: NASM
Version: 2.12.xx
Hardware: All
OS: All
Status: OPEN
Severity: normal
Priority: Medium
Component: Assembler
Assignee: nobody at nasm.us
Reporter: nms at otdel-1.org
CC: gorcunov at gmail.com, hpa at zytor.com, nasm-bugs at nasm.us
Created attachment 411560
--> http://bugzilla.nasm.us/attachment.cgi?id=411560&action=edit
nasm sample file
Summary says all. Source file where the bug was discovered in attachment.
Script with details below
bash-3.2$ nasm -v
NASM version 2.12.01 compiled on Mar 23 2016
bash-3.2$ nasm -f macho32 -o 0.obj MpAsm.nasm
bash-3.2$ otool -v -l 0.obj
0.obj:
Load command 0
cmd LC_SEGMENT
cmdsize 192
segname
vmaddr 0x00000000
vmsize 0x0000003d
fileoff 244
filesize 64
maxprot rwx
initprot rwx
nsects 2
flags (none)
Section
sectname __text
segname __TEXT
addr 0x00000000
size 0x00000039
offset 244
align 2^0 (1)
reloff 308
nreloc 5
type S_REGULAR
attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS EXT_RELOC LOC_RELOC
reserved1 0
reserved2 0
Section
sectname __data
segname __DATA
addr 0x00000039
size 0x00000004
offset 304
align 2^0 (1)
reloff 0
nreloc 0
type S_REGULAR
attributes (none)
reserved1 0
reserved2 0
Load command 1
cmd LC_SYMTAB
cmdsize 24
symoff 348
nsyms 7
stroff 432
strsize 146
bash-3.2$
--
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.
More information about the Nasm-bugs
mailing list