Skip to content

Commit 3002b41

Browse files
author
Russell King
committed
ARM: decompressor: use better output sections
Place read-only data in a .rodata output section, and the compressed piggy data in .piggydata. Place the .got.plt section before the .got section as is standard ELF practise. This allows the piggydata to be more easily extracted from the compressed vmlinux file for verification purposes. Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent c1f2d99 commit 3002b41

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

‎arch/arm/boot/compressed/vmlinux.lds.in‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,24 @@ SECTIONS
3333
*(.text.*)
3434
*(.fixup)
3535
*(.gnu.warning)
36+
*(.glue_7t)
37+
*(.glue_7)
38+
}
39+
.rodata : {
3640
*(.rodata)
3741
*(.rodata.*)
38-
*(.glue_7)
39-
*(.glue_7t)
42+
}
43+
.piggydata : {
4044
*(.piggydata)
41-
. = ALIGN(4);
4245
}
4346

47+
. = ALIGN(4);
4448
_etext = .;
4549

50+
.got.plt : { *(.got.plt) }
4651
_got_start = .;
4752
.got : { *(.got) }
4853
_got_end = .;
49-
.got.plt : { *(.got.plt) }
5054
_edata = .;
5155

5256
. = BSS_START;

0 commit comments

Comments
 (0)