-
Notifications
You must be signed in to change notification settings - Fork 4
Add sections table #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0Nera
commented
Jan 18, 2025
- Clearing the bss section results in an error
| //memset(&kernel_section_bss_start, 0, | ||
| // (uint64_t)&kernel_section_bss_end - | ||
| // (uint64_t)&kernel_section_bss_start); | ||
| serial_printf("\t.text 0x%x-0x%x(%u)\n", &kernel_section_text_start, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| // (uint64_t)&kernel_section_bss_end - | ||
| // (uint64_t)&kernel_section_bss_start); | ||
| serial_printf("\t.text 0x%x-0x%x(%u)\n", &kernel_section_text_start, | ||
| &kernel_section_text_end, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| // (uint64_t)&kernel_section_bss_start); | ||
| serial_printf("\t.text 0x%x-0x%x(%u)\n", &kernel_section_text_start, | ||
| &kernel_section_text_end, | ||
| &kernel_section_text_end - &kernel_section_text_start); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| kernel_sections[0] = | ||
| (sections_t){ kernel_section_text_start, kernel_section_text_end }; | ||
|
|
||
| serial_printf("\t.rodata 0x%x-0x%x(%u)\n", &kernel_section_rodata_start, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| (sections_t){ kernel_section_text_start, kernel_section_text_end }; | ||
|
|
||
| serial_printf("\t.rodata 0x%x-0x%x(%u)\n", &kernel_section_rodata_start, | ||
| &kernel_section_rodata_end, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| (sections_t){ kernel_section_rodata_start, kernel_section_rodata_end }; | ||
|
|
||
| serial_printf("\t.data 0x%x-0x%x(%u)\n", &kernel_section_data_start, | ||
| &kernel_section_data_end, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
|
|
||
| serial_printf("\t.data 0x%x-0x%x(%u)\n", &kernel_section_data_start, | ||
| &kernel_section_data_end, | ||
| &kernel_section_data_end - &kernel_section_data_start); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| kernel_sections[2] = | ||
| (sections_t){ kernel_section_data_start, kernel_section_data_end }; | ||
|
|
||
| serial_printf("\t.bss 0x%x-0x%x(%u)\n", &kernel_section_bss_start, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
| (sections_t){ kernel_section_data_start, kernel_section_data_end }; | ||
|
|
||
| serial_printf("\t.bss 0x%x-0x%x(%u)\n", &kernel_section_bss_start, | ||
| &kernel_section_bss_end, |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
|
|
||
| serial_printf("\t.bss 0x%x-0x%x(%u)\n", &kernel_section_bss_start, | ||
| &kernel_section_bss_end, | ||
| &kernel_section_bss_end - &kernel_section_bss_start); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High