Fixed R_386_PC32 relocations
[marionette.git] / doc / build.txt
bloba8151892fcffd30ad13227b3460daf9571174b26
1 Building
2 ========
4 This section describes the build process, should you wish to use a different
5 build system.
7 The libc
8 --------
10 Each .c and .S file in libc/ is compiled (or assembled) into an object file. All
11 the object files are then archived into libc.a.
13 The kernel
14 ----------
16 Each .c and .S file in kernel/ and kernel/mm/ is compiled (or assembled) into an
17 object file. All the object files are then linked together, using
18 kernel/linker.ld, along with libc.a.
20 The kernel is linked with:
22 -----
23 gcc $LINKFLAGS -Wl,-T,kernel/linker.ld -o build/kernel/kernel.elf <object files> -Lbuild/libc -lc -lgcc
24 -----