aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/elf2exe/elf2exe.8
blob: 0b59745b53a7e3ee292fcae3add18f8f26a42ce5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.\" Copyright (c) 1999 Stefan Esser
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\"
.\"     $Id: elf2exe.8,v 1.1.1.1 1999/07/28 20:09:52 se Exp $
.\"
.Dd July 26, 1999
.Dt ELF2EXE 8
.Os FreeBSD 4.0
.Sh NAME
.Nm elf2exe
.Nd convert Alpha ELF executable to AlphaBIOS / ARCS format
.Sh SYNOPSIS
.Nm elf2exe
.Ar infile
.Ar outfile
.Sh DESCRIPTION
.Nm Elf2exe
creates an executable that can be loaded by the AlphaBIOS or ARCS consoles
as found on systems designed for 
.Tn Windows/NT .
The input file must have been 
created as a non-relocatable standalone binary with a load address within 
the memory range available for user programs (0x80000000 to 0x806fdfff
and 0x80900000 to at least 0x80ffffff).
.Pp
The command prints a list of sections found in the ELF executable and the 
section sizes and offsets of the output file for diagnostic purposes.
.Pp
Given an object file 
.B src.o
the following two commands will create a binary for ARCS:
.Dl ld \-o a.out \-M \-N \-Ttext 0x80900000 src.o\c
.Dl elf2exe a.out a.exe\c
.Sh BUGS
.Nm Elf2exe
does not even attempt to verify that the input file matches the requirements 
for an ARC executable.
.Sh HISTORY
The
.Nm
command appeared in
.Fx 4.0 .