Update linker script in post (add .got and .got.plt)

This commit is contained in:
Philipp Oppermann
2016-07-14 18:11:58 +02:00
parent 2445b47661
commit 68c1e42356

View File

@@ -650,6 +650,8 @@ To put all sections on their own page, we add the `ALIGN` statement to all of th
```
/* src/arch/x86_64/linker.ld */
ENTRY(start)
SECTIONS {
. = 1M;
@@ -679,6 +681,18 @@ SECTIONS {
. = ALIGN(4K);
}
.got :
{
*(.got)
. = ALIGN(4K);
}
.got.plt :
{
*(.got.plt)
. = ALIGN(4K);
}
.data.rel.ro : ALIGN(4K) {
*(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
. = ALIGN(4K);