Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
C:\>podump C:\1.objDump of C:\1.objFile type: OBJPODUMP: fatal error: Access denied.
echo int i; > test.c && pocc /c test.c && podump test.obj
test.c(1): warning #2099: Missing type specifier; assuming 'int'.test.c(1): error #2001: Syntax error: expected ';' but found 'int'.
Are you joking? It's a shell command, it overwrites test.c with int i;, then compiles it and dumps the resulting .obj.
echo int i; > test.c && pocc /c test.c && podump /ALL test.obj
Yes it seems a bug. Probably the *podump* code try to read beyond the file end.If you try:Code: [Select]echo int i; > test.c && pocc /c test.c && podump /ALL test.objPodump produce requested output then stops with the error.
\masm32\bin\dumpbin /all test.obj
Code: [Select]Microsoft (R) COFF Binary File Dumper Version 5.12.8078Copyright (C) Microsoft Corp 1992-1998. All rights reserved.Dump of file foo.objFile Type: COFF OBJECTFILE HEADER VALUES 14C machine (i386) 2 number of sections 4EC244D7 time date stamp Tue Nov 15 14:54:15 2011 74 file pointer to symbol table 7 number of symbols 0 size of optional header 100 characteristics 32 bit word machineSECTION HEADER #1 .bss name 0 physical address 0 virtual address 0 size of raw data 0 file pointer to raw data 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbersC0300080 flags Uninitialized Data 4 byte align Read WriteSECTION HEADER #2.drectve name 0 physical address 0 virtual address 10 size of raw data 64 file pointer to raw data 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers A00 flags Info Remove (no align specified)RAW DATA #2 00000000: 20 2D 64 65 66 61 75 6C 74 6C 69 62 3A 63 72 74 -defaultlib:crt Linker Directives ----------------- -defaultlib:crtCOFF SYMBOL TABLE000 00000000 DEBUG notype Filename | .file foo.c002 00000000 SECT1 notype Static | .bss Section length 0, #relocs 0, #linenums 0, checksum 0004 00000004 UNDEF notype External | _foo005 00000000 SECT2 notype Static | .drectve Section length 10, #relocs 0, #linenums 0, checksum 0String Table Size = 0x0 bytes Summary 0 .bss 10 .drectve
Microsoft (R) COFF Binary File Dumper Version 5.12.8078Copyright (C) Microsoft Corp 1992-1998. All rights reserved.Dump of file foo.objFile Type: COFF OBJECTFILE HEADER VALUES 14C machine (i386) 2 number of sections 4EC244D7 time date stamp Tue Nov 15 14:54:15 2011 74 file pointer to symbol table 7 number of symbols 0 size of optional header 100 characteristics 32 bit word machineSECTION HEADER #1 .bss name 0 physical address 0 virtual address 0 size of raw data 0 file pointer to raw data 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbersC0300080 flags Uninitialized Data 4 byte align Read WriteSECTION HEADER #2.drectve name 0 physical address 0 virtual address 10 size of raw data 64 file pointer to raw data 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers A00 flags Info Remove (no align specified)RAW DATA #2 00000000: 20 2D 64 65 66 61 75 6C 74 6C 69 62 3A 63 72 74 -defaultlib:crt Linker Directives ----------------- -defaultlib:crtCOFF SYMBOL TABLE000 00000000 DEBUG notype Filename | .file foo.c002 00000000 SECT1 notype Static | .bss Section length 0, #relocs 0, #linenums 0, checksum 0004 00000004 UNDEF notype External | _foo005 00000000 SECT2 notype Static | .drectve Section length 10, #relocs 0, #linenums 0, checksum 0String Table Size = 0x0 bytes Summary 0 .bss 10 .drectve