specify entry symbol with -e argument
[ld.git] / ld.1
blob0eab8205dd91329498ae1c698b3fd4b9222d9587
1 .TH NEATLD 1 
2 .SH NAME
3 neatld \- the neatld static linker
4 .SH SYNOPSIS
5 .B ld
7 .I options
9 .I objfile ...
10 .br
11 .SH DESCRIPTION
12 neatld links the given object and archive files into an executable
13 file.  Options are:
14 .TP
15 .BI -o " out"
16 Write the output to the given file instead of
17 .I a.out.
18 .TP
19 .BI -l lib
20 Link with library
21 .IR lib .
22 .TP
23 .BI -L libdir
24 Search
25 .IR libdir
26 for finding libraries specified with
27 .B -l.
28 .TP
29 .BI -s
30 Do not include a symbol table.
31 .TP
32 .BI -m X=vaddr:laddr
33 Set the virtual/load address of a section.
34 .I X
35 defines the section and can be
36 .I c
37 for code section,
38 .I d
39 for data section and
40 .I b
41 for BSS section.
42 .IR laddr
43 can be omitted in which case it would be the same as
44 .IR vaddr .
45 .TP
46 .BI -p
47 Page-align sections.
48 .TP
49 .BI -e sym
50 Entry point symbol.
51 .SH "SEE ALSO"
52 .IR neatcc (1),
53 .IR neatas (1)