Skip to content

Commit 8d18ef0

Browse files
legionusnathanchance
authored andcommitted
s390: vmlinux.lds.S: Reorder sections
In the upcoming changes, the ELF_DETAILS macro will be extended with the ".modinfo" section, which will cause an error: >> s390x-linux-ld: .tmp_vmlinux1: warning: allocated section `.modinfo' not in segment >> s390x-linux-ld: .tmp_vmlinux2: warning: allocated section `.modinfo' not in segment >> s390x-linux-ld: vmlinux.unstripped: warning: allocated section `.modinfo' not in segment This happens because the .vmlinux.info use :NONE to override the default segment and tell the linker to not put the section in any segment at all. To avoid this, we need to change the sections order that will be placed in the default segment. Cc: Heiko Carstens <[email protected]> Cc: Vasily Gorbik <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: [email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Alexey Gladkov <[email protected]> Acked-by: Heiko Carstens <[email protected]> Link: https://patch.msgid.link/20d40a7a3a053ba06a54155e777dcde7fdada1db.1758182101.git.legion@kernel.org Signed-off-by: Nathan Chancellor <[email protected]>
1 parent aa943a2 commit 8d18ef0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/s390/kernel/vmlinux.lds.S

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,11 @@ SECTIONS
209209
. = ALIGN(PAGE_SIZE);
210210
_end = . ;
211211

212+
/* Debugging sections. */
213+
STABS_DEBUG
214+
DWARF_DEBUG
215+
ELF_DETAILS
216+
212217
/*
213218
* uncompressed image info used by the decompressor
214219
* it should match struct vmlinux_info
@@ -239,11 +244,6 @@ SECTIONS
239244
#endif
240245
} :NONE
241246

242-
/* Debugging sections. */
243-
STABS_DEBUG
244-
DWARF_DEBUG
245-
ELF_DETAILS
246-
247247
/*
248248
* Make sure that the .got.plt is either completely empty or it
249249
* contains only the three reserved double words.

0 commit comments

Comments
 (0)