mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 13:16:31 +00:00
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:
@ -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)
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user