Skip to content

Commit cdf77d4

Browse files
committed
Fix .init section description dead link
1 parent 720dceb commit cdf77d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2019-04-27-riscv-from-scratch-2.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ With this knowledge in mind, let's run through this file line-by-line. We'll be
349349
.section .init, "ax"
350350
{% endhighlight %}
351351

352-
Referencing the [GNU 'as' manual](https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html), this line tells the assembler that we want the following code to go into a section named `.init` that is `a`llocatable and e`x`ecutable. The `.init` section is [another commonly followed convention](http://l4u-00.jinr.ru/usoft/WWW/www_debian.org/Documentation/elf/node3.html) for running your code within the confines of an operating system. We're running on bare metal with no OS, so this may not be totally necessary in our case, but it's good practice regardless.
352+
Referencing the [GNU 'as' manual](https://ftp.gnu.org/old-gnu/Manuals/gas-2.9.1/html_chapter/as_7.html), this line tells the assembler that we want the following code to go into a section named `.init` that is `a`llocatable and e`x`ecutable. The `.init` section is [another commonly followed convention](https://web.archive.org/web/20190104080351/http://l4u-00.jinr.ru/usoft/WWW/www_debian.org/Documentation/elf/node3.html) for running your code within the confines of an operating system. We're running on bare metal with no OS, so this may not be totally necessary in our case, but it's good practice regardless.
353353

354354
{% highlight nasm %}
355355
.global _start

0 commit comments

Comments
 (0)