Skip to content

Commit d51a8ff

Browse files
committed
Move and align .dynamic section on Aarch64
Otherwise it gets blended with .text causing the linker to create a RWE segment, which is bad and causes a fatal warning with newer binutils Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent c753f64 commit d51a8ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gnuefi/elf_aa64_efi.lds

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ SECTIONS
1515
}
1616
_etext = .;
1717
_text_size = . - _text;
18-
.dynamic : { *(.dynamic) }
1918
.data : ALIGN(4096)
2019
{
2120
_data = .;
@@ -68,6 +67,8 @@ SECTIONS
6867
_edata = .;
6968
_data_size = . - _data;
7069

70+
. = ALIGN(4096);
71+
.dynamic : { *(.dynamic) }
7172
. = ALIGN(4096);
7273
.dynsym : { *(.dynsym) }
7374
. = ALIGN(4096);

0 commit comments

Comments
 (0)