diff between coff and elf

D:\linux\linuxkernel\WORKING_DIRECTORY\android-omap-20111108-gingerbread\dalvik\vm\mterp\out>gcc -c InterpAsm-x86.S -o InterpAsm-x86.o
InterpAsm-x86.S: Assembler messages:
InterpAsm-x86.S:6291: Warning: .size pseudo-op used outside of .def/.endef ignored.
InterpAsm-x86.S:6291: Error: junk at end of line, first unrecognized character is `d'
http://code.ohloh.net/search?s=.def%20%20.size%20%20%09.endef&p=3&browser=Default&pp=0&fe=S&mp=1&ml=1&me=0&md=1&ff=1&filterChecked=true
http://code.ohloh.net/file?fid=11GdDFv2c7RhQQDUSssC_CXDZ2w&cid=vzrgujR7aEs&s=.def%20%20.size%20%20%09.endef&browser=Default#L223
d:\linux\linuxkernel\WORKING_DIRECTORY\ango\libdvm\doc\inffast.S
#if defined( GAS_COFF )
/* coff externals have underscores */
#define inflate_fast _inflate_fast
#define inflate_fast_use_mmx _inflate_fast_use_mmx
#endif /* GAS_COFF */


#if defined( GAS_COFF )
/* coff info: scl 2 = extern, type 32 = function */
.def inflate_fast; .scl 2; .type 32; .endef
#endif
no .size for COFF
#if defined( GAS_ELF )
/* elf info */
.type inflate_fast,@function
.size inflate_fast,.-inflate_fast
#endif


when compiled, put InterpAsm-x86.o into the linker options. Done.

你可能感兴趣的:(diff between coff and elf)