The MirOS Project

CVS log for src/sys/arch/i386/include/exec.h

[BACK] Up to [The MirOS Project] / src / sys / arch / i386 / include

Request diff between arbitrary revisions - Display revisions graphically


Keyword substitution: kv
Default branch: MAIN


Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Nov 17 01:11:19 2008 UTC (3 years, 2 months ago) by tg - 1004920C4903A8D6AAA
Branches: MAIN
CVS tags: HEAD
Diff to previous 1.5: preferred, coloured
Changes since revision 1.5: +1 -3 lines
enable (E)COFF execution

This is very weird though: I only got an NMAGIC executable with the
following source code and build way to work, which is auto-detected
by GNU bfd as “pe-i386”, but cannot be created by ld(1) in an auto-
mated manner…

tg@bleu:~ $ as -o hwtdb.o hwtdb.s
tg@bleu:~ $ ld --oformat binary -Ttext 0 hwtdb.o -o hwtdb
tg@bleu:~ $ ./hwtdb
Hello, World!

	.intel_syntax noprefix
	.text

	.globl	_start
_start:

fhdr:	.short	0x014C			# f_magic
	.short	3			# f_nscns
	.long	0, 0, 0			# f_timdat, f_symptr, f_nsyms
	.short	ohsz			# f_opthdr
	.short	0x010F			# f_flags

ohdr:	.short	0407			# magic
	.short	134			# vstamp
	.long	tssz			# tsize
	.long	dssz			# dsize
	.long	bssz			# bsize
	.long	0x1C000000		# entry
	.long	0x1C000000		# text_start
	.long	0x1C000000 + dofs	# data_start
	.long	0			# bss_start
	ohsz = . - ohdr

shdrt:	.asciz	".text"			# s_name
	. = shdrt + 8
	.long	0x1C000000		# s_paddr
	.long	0x1C000000		# s_vaddr
	.long	tssz			# s_size
	.long	tsec			# s_scnptr
	.long	0, 0			# s_relptr, s_lnnoptr
	.short	0, 0			# s_nreloc, s_nlnno
	.long	0x20			# s_flags

shdrd:	.asciz	".data"			# s_name
	. = shdrd + 8
	.long	0x1C000000 + dofs	# s_paddr
	.long	0x1C000000 + dofs	# s_vaddr
	.long	dssz			# s_size
	.long	dsec			# s_scnptr
	.long	0, 0			# s_relptr, s_lnnoptr
	.short	0, 0			# s_nreloc, s_nlnno
	.long	0x40			# s_flags

shdrb:	.asciz	".bss"			# s_name
	. = shdrb + 8
	.long	0			# s_paddr
	.long	0x1C000000 + bofs	# s_vaddr
	.long	bssz			# s_size
	.long	0			# s_scnptr
	.long	0, 0			# s_relptr, s_lnnoptr
	.short	0, 0			# s_nreloc, s_nlnno
	.long	0x80			# s_flags

	.p2align 4, 0

	fofs = .

tsec:
	call	Lmain
Ltext:	.ascii	"Hello, World!\n"
	Ltxsz = . - Ltext
sc_write:
	mov	eax,4
	int	0x80
	ret
Lmain:	pop	ecx
	push	dword ptr Ltxsz
	push	ecx
	push	dword ptr 1
	call	sc_write
	add	esp,12
	push	dword ptr 0
	call	sc__exit
sc__exit:
	xor	eax,eax
	inc	eax
	int	0x80
1:	jmp	1b
tpad:	.p2align 4, 0x90
	tssz = . - tsec

	dofs = . - fofs
dsec:
dpad:	.p2align 4, 0
	dssz = . - dsec

	bofs = . - fofs
bsec:
	bssz = . - bsec

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Jun 25 03:57:33 2006 UTC (5 years, 7 months ago) by tg - 100449E09CD353EDDF1
Branches: MAIN
CVS tags: MIRBSD_9_BASE, MIRBSD_10_BASE, MIRBSD_10
Diff to previous 1.4: preferred, coloured
Changes since revision 1.4: +3 -1 lines
don't even bother with (E)COFF for now, it's broken anyway

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Apr 27 20:44:09 2006 UTC (5 years, 9 months ago) by tg - 10044512D3D3EEA74B3
Branches: MAIN
Diff to previous 1.3: preferred, coloured
Changes since revision 1.3: +5 -3 lines
put a.out and (E)COFF into #ifndef SMALL_KERNEL

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Mar 31 03:45:52 2006 UTC (5 years, 10 months ago) by tg - 100442CA5DA0DEFA153
Branches: MAIN
Diff to previous 1.2: preferred, coloured
Changes since revision 1.2: +2 -0 lines
throw in EXEC_ECOFF support for i386...
I get an EPERM but maybe someone can debug this?

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Mar 6 21:26:37 2005 UTC (6 years, 11 months ago) by tg
Branches: MAIN
CVS tags: MIRBSD_8_BASE, MIRBSD_8
Diff to previous 1.1: preferred, coloured
Changes since revision 1.1: +16 -0 lines
* merge src/sys/
  (at least the better part of it)
* revert IPv6 networking to OpenBSD, since
  I didn't get IPV4_MAPPED addresses working :(

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Feb 5 17:27:03 2005 UTC (7 years ago) by tg
Branches: openbsd
CVS tags: tg-beforemerge-ksrc10
Diff to previous 1.1: preferred, coloured
Changes since revision 1.1: +0 -0 lines
Import the OpenBSD foundation of MirOS BSD

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sat Feb 5 17:27:03 2005 UTC (7 years ago) by tg
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

Valid XHTML/1.0 Transitional! — CVSweb for MirOSChangeLog