Lines Matching full:main
11 partitioned program consists of a main partition together with a number of
12 loadable partitions. The loadable partitions depend on the main partition
14 shared object, the main partition and the loadable partitions share a virtual
16 offset from the main partition. This allows the loadable partitions to refer
17 to code and data in the main partition directly without the binary size and
25 could, for example, be the equivalent of the partition's ``main`` function, or
46 assigned to the main partition, including sections only reachable from
58 with the flag ``--extract-main-partition`` to extract the main partition, or
64 # Compile the main program.
65 clang -ffunction-sections -fdata-sections -c main.c
68 # Note that this is likely to be a separate build step to the main partition.
72 …clang main.o feature.o -fuse-ld=lld -shared -o libcombined.so -Wl,-soname,libmain.so -Wl,--gc-sect…
75 llvm-objcopy libcombined.so libmain.so --extract-main-partition