summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--elf_aarch64_efi.lds17
-rw-r--r--elf_arm_efi.lds15
-rw-r--r--elf_ia32_efi.lds1
-rw-r--r--elf_x86_64_efi.lds10
4 files changed, 29 insertions, 14 deletions
diff --git a/elf_aarch64_efi.lds b/elf_aarch64_efi.lds
index 4324dc9c..96f15d56 100644
--- a/elf_aarch64_efi.lds
+++ b/elf_aarch64_efi.lds
@@ -14,12 +14,16 @@ SECTIONS
. = ALIGN(16);
_etext = .;
}
+
+ . = ALIGN(4096);
.dynamic : { *(.dynamic) }
. = ALIGN(4096);
.note.gnu.build-id : {
*(.note.gnu.build-id)
}
+
+ . = ALIGN(4096);
.data.ident : {
*(.data.ident)
}
@@ -55,10 +59,15 @@ SECTIONS
}
. = ALIGN(4096);
- .rela.dyn : { *(.rela.dyn) }
- .rela.plt : { *(.rela.plt) }
- .rela.got : { *(.rela.got) }
- .rela.data : { *(.rela.data) *(.rela.data*) }
+ . = ALIGN(4096);
+ .rela :
+ {
+ *(.rela.dyn)
+ *(.rela.plt)
+ *(.rela.got)
+ *(.rela.data)
+ *(.rela.data*)
+ }
_edata = .;
_data_size = . - _data;
diff --git a/elf_arm_efi.lds b/elf_arm_efi.lds
index 0287293a..b12424ed 100644
--- a/elf_arm_efi.lds
+++ b/elf_arm_efi.lds
@@ -20,6 +20,8 @@ SECTIONS
.note.gnu.build-id : {
*(.note.gnu.build-id)
}
+
+ . = ALIGN(4096);
.data.ident : {
*(.data.ident)
}
@@ -55,10 +57,15 @@ SECTIONS
}
. = ALIGN(4096);
- .rel.dyn : { *(.rel.dyn) }
- .rel.plt : { *(.rel.plt) }
- .rel.got : { *(.rel.got) }
- .rel.data : { *(.rel.data) *(.rel.data*) }
+ . = ALIGN(4096);
+ .rel :
+ {
+ *(.rel.dyn)
+ *(.rel.plt)
+ *(.rel.got)
+ *(.rel.data)
+ *(.rel.data*)
+ }
_edata = .;
_data_size = . - _data;
diff --git a/elf_ia32_efi.lds b/elf_ia32_efi.lds
index 2ba18c7b..deec2eca 100644
--- a/elf_ia32_efi.lds
+++ b/elf_ia32_efi.lds
@@ -23,6 +23,7 @@ SECTIONS
.note.gnu.build-id : {
*(.note.gnu.build-id)
}
+ . = ALIGN(4096);
.data.ident : {
*(.data.ident)
}
diff --git a/elf_x86_64_efi.lds b/elf_x86_64_efi.lds
index 81d21a05..1f561b25 100644
--- a/elf_x86_64_efi.lds
+++ b/elf_x86_64_efi.lds
@@ -28,6 +28,8 @@ SECTIONS
.note.gnu.build-id : {
*(.note.gnu.build-id)
}
+
+ . = ALIGN(4096);
.data.ident : {
*(.data.ident)
}
@@ -62,12 +64,8 @@ SECTIONS
.rela :
{
*(.rela.data*)
- }
- .rela.got : {
- *(.rela.got)
- }
- .rela.stab : {
- *(.rela.stab)
+ *(.rela.got*)
+ *(.rela.stab*)
}
_edata = .;
_data_size = . - _data;