This commit is contained in:
chyyuu
2022-07-09 07:58:24 +00:00
parent e327d80d84
commit 26b43cfdd5
3 changed files with 8 additions and 1 deletions

View File

@@ -118,6 +118,12 @@ println! 宏是由标准库 std 提供的,且会使用到一个名为 write
分析被移除标准库的程序
-----------------------------
首先安装 cargo-binutils 工具集:
.. code-block:: console
$ cargo install cargo-binutils
$ rustup component add llvm-tools-preview
我们可以通过一些工具来分析目前的程序:
.. code-block:: console

View File

@@ -382,6 +382,7 @@ error: requires `start` lang_item
</div>
<div class="section" id="id2">
<h2>分析被移除标准库的程序<a class="headerlink" href="#id2" title="永久链接至标题"></a></h2>
<p>首先安装 cargo-binutils 工具集:</p>
<p>我们可以通过一些工具来分析目前的程序:</p>
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="go">[文件格式]</span>
<span class="gp">$ </span>file target/riscv64gc-unknown-none-elf/debug/os

File diff suppressed because one or more lines are too long