]> granicus.if.org Git - yasm/commit
First cut at CodeView (version "8" / 2005 only). Completely untested.
authorPeter Johnson <peter@tortall.net>
Mon, 27 Mar 2006 02:15:19 +0000 (02:15 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 27 Mar 2006 02:15:19 +0000 (02:15 -0000)
commit93660bd073ad1009ff7b73a60121e2ca04133ac9
tree793dab77d4d7d90386928f828567fd7d9aa3760a
parent5cec40f1aeb3bf348d91ea8e440113800ce418f5
First cut at CodeView (version "8" / 2005 only).  Completely untested.

* md5.c, md5.h: Import MD5 from public domain version in CVS source.
* libyasm/Makefile.inc: Attach to libyasm build.
* libyasm.h: Include md5.h.

* coretype.h (yasm_value): Add new section_rel member.
* value.h (yasm_value_init, yasm_value_init_sym): Initialize.
* value.c (yasm_value_output_basic): Don't output if set.
* xdf-objfmt.c (xdf_objfmt_output_value): Likewise.
* elf-objfmt.c (elf_objfmt_output_value): Likewise.
* coff-objfmt.c (coff_objfmt_output_value): Generate SECREL for this.

* coretype.h (YASM_PATHSEP): New define for path separator.
* vc8/config.h, vc/config.h, dj/config.h: Override.

* dbgfmts/codeview: New, adds "cv8" dbgfmt.
* dbgfmts/Makefile.inc: Hook into build.
* coff-objfmt.c: Enable cv8 dbgfmt for win32 and win64.  Change a few things
to more closely match MASM output.
(coff_section_data): Add isdebug flag so that section flags are set properly.
(coff_objfmt_secton_switch): Initialize to 0 here.
(coff_objfmt_init_remaining_section): Initialize to 1 and set various section
flags (DATA, DISCARD, READ) if section name starts with ".debug".
(coff_objfmt_output): If non-NULL dbgfmt, set object flags to say line numbers
are included.

* dwarfwin64_testhd.hex: Minor update due to coff_objfmt_output() change.

svn path=/trunk/yasm/; revision=1428
21 files changed:
Mkfiles/dj/config.h
Mkfiles/vc/config.h
Mkfiles/vc8/config.h
libyasm.h
libyasm/Makefile.inc
libyasm/coretype.h
libyasm/md5.c [new file with mode: 0644]
libyasm/md5.h [new file with mode: 0644]
libyasm/value.c
libyasm/value.h
modules/dbgfmts/Makefile.inc
modules/dbgfmts/codeview/Makefile.inc [new file with mode: 0644]
modules/dbgfmts/codeview/cv-dbgfmt.c [new file with mode: 0644]
modules/dbgfmts/codeview/cv-dbgfmt.h [new file with mode: 0644]
modules/dbgfmts/codeview/cv-symline.c [new file with mode: 0644]
modules/dbgfmts/codeview/cv-type.c [new file with mode: 0644]
modules/dbgfmts/codeview/cv8.txt [new file with mode: 0644]
modules/dbgfmts/dwarf2/tests/passwin64/dwarfwin64_testhd.hex
modules/objfmts/coff/coff-objfmt.c
modules/objfmts/elf/elf-objfmt.c
modules/objfmts/xdf/xdf-objfmt.c