mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-30 21:34:27 +01:00
asm: make all text section labels .L local
To help with backtraces if we ever fix them due to the lkmc_asm_main_after_prologue debacle.
This commit is contained in:
@@ -17,10 +17,10 @@ LKMC_PROLOGUE
|
||||
* This could be used if the label is too far away for
|
||||
* adr relative addressing.
|
||||
*/
|
||||
movz x0, :abs_g2:label /* bits 32-47, overflow check */
|
||||
movk x0, :abs_g1_nc:label /* bits 16-31, no overflow check */
|
||||
movk x0, :abs_g0_nc:label /* bits 0-15, no overflow check */
|
||||
adr x1, label
|
||||
label:
|
||||
movz x0, :abs_g2:.Llabel /* bits 32-47, overflow check */
|
||||
movk x0, :abs_g1_nc:.Llabel /* bits 16-31, no overflow check */
|
||||
movk x0, :abs_g0_nc:.Llabel /* bits 0-15, no overflow check */
|
||||
adr x1, .Llabel
|
||||
.Llabel:
|
||||
LKMC_ASSERT_EQ_REG(x0, x1)
|
||||
LKMC_EPILOGUE
|
||||
|
||||
Reference in New Issue
Block a user