modify kernel link script (#373)

put rust text between _text and _etext, so rust symbols are included in
kallsyms, traceback could use them.

modify grub_auto_install.sh to add arch linux support
This commit is contained in:
zhaoyao73
2023-09-06 06:08:52 -04:00
committed by GitHub
parent 3b0bf43bbb
commit 285de542f3
2 changed files with 30 additions and 16 deletions

View File

@ -25,9 +25,13 @@ SECTIONS
.text (text_start_pa): AT(text_start_pa - KERNEL_VMA)
{
_text = .;
/* any files' .text */
*(.text)
/* any files' .text.*, for example: rust .text._ZN* */
*(.text.*)
_etext = .;
}
. = ALIGN(32768);
@ -73,4 +77,4 @@ SECTIONS
*(.eh_frame)
}
}
}