summaryrefslogtreecommitdiff
path: root/elf_x86_64_efi.lds
diff options
context:
space:
mode:
Diffstat (limited to 'elf_x86_64_efi.lds')
-rw-r--r--elf_x86_64_efi.lds6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf_x86_64_efi.lds b/elf_x86_64_efi.lds
index f9811028..68072105 100644
--- a/elf_x86_64_efi.lds
+++ b/elf_x86_64_efi.lds
@@ -15,7 +15,9 @@ SECTIONS
. = ALIGN(4096);
.text :
{
+ _text = .;
*(.text)
+ _etext = .;
}
. = ALIGN(4096);
.reloc :
@@ -25,6 +27,7 @@ SECTIONS
. = ALIGN(4096);
.data :
{
+ _data = .;
*(.rodata*)
*(.got.plt)
*(.got)
@@ -53,6 +56,9 @@ SECTIONS
*(.rela.got)
*(.rela.stab)
}
+ _edata = .;
+ _data_size = . - _data;
+
. = ALIGN(4096);
.dynsym : { *(.dynsym) }
. = ALIGN(4096);