mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 20:08:15 +08:00
Documentation update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5279 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -50,8 +50,8 @@
|
|||||||
<p>
|
<p>
|
||||||
<b>Binary Loaders</b>.
|
<b>Binary Loaders</b>.
|
||||||
The purpose of a <i>binary loader</i> is to load and execute modules in various <i>binary formats</i> that reside in a file system.
|
The purpose of a <i>binary loader</i> is to load and execute modules in various <i>binary formats</i> that reside in a file system.
|
||||||
Loading refers instiating the binary module in some fashion, usually copy all or some of the binary module into memory and then linking the module with other components.
|
Loading refers instantiating the binary module in some fashion, usually copy all or some of the binary module into memory and then linking the module with other components.
|
||||||
In most architectures, it is thebase FLASH code that is the primary component that the binary module must link with because that is where the RTOS and primary tasks reside.
|
In most architectures, it is the base FLASH code that is the primary component that the binary module must link with because that is where the RTOS and primary tasks reside.
|
||||||
Program modules can then be executed after they have been loaded.
|
Program modules can then be executed after they have been loaded.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -76,14 +76,14 @@
|
|||||||
<b>NXFLAT</b>.
|
<b>NXFLAT</b>.
|
||||||
NuttX NXFLAT formatted files.
|
NuttX NXFLAT formatted files.
|
||||||
More information about the NXFLAT binary format can be found in the
|
More information about the NXFLAT binary format can be found in the
|
||||||
<href="NuttXNxFlat.html">NXFLAT documentation</a>.
|
<a href="NuttXNxFlat.html">NXFLAT documentation</a>.
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>Executables and Libraries</b>
|
<b>Executables and Libraries</b>
|
||||||
The generic binary loader logic does not care what it is that it being loaded. It could load an executable program or a library.
|
The generic binary loader logic does not care what it is that it being loaded. It could load an executable program or a library.
|
||||||
There are no strict rules, but a library will tend to export symbols and a program will tend to import symbols: The program will use the symbols exported by the library.
|
There are no strict rules, but a library will tend to export symbols and a program will tend to import symbols: The program will use the symbols exported by the library.
|
||||||
However, at this point in time, none of the supported binary formts support exporting of symbols.
|
However, at this point in time, none of the supported binary formats support exporting of symbols.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
@@ -128,7 +128,7 @@ struct binfmt_s
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
The <code>load</code> method is used to load the binary format into memory.
|
The <code>load</code> method is used to load the binary format into memory.
|
||||||
It returns either <code>OK</code> (0) meaning that the binary object was loaded successfully, or a negater <code>errno</code> indicating why the object was not loaded.
|
It returns either <code>OK</code> (0) meaning that the binary object was loaded successfully, or a negated <code>errno</code> indicating why the object was not loaded.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
+719
-698
File diff suppressed because it is too large
Load Diff
@@ -129,3 +129,4 @@ int sched_getscheduler(pid_t pid)
|
|||||||
return SCHED_FIFO;
|
return SCHED_FIFO;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user