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:
Ciro Santilli 六四事件 法轮功
2019-06-16 00:00:01 +00:00
parent 4d4b82f248
commit b3874cc72b
14 changed files with 43 additions and 46 deletions

View File

@@ -27,11 +27,11 @@ LKMC_PROLOGUE
* "LDR (literal)" instead of "LDR (immediate)":
* https://stackoverflow.com/questions/28638981/howto-write-pc-relative-adressing-on-arm-asm/54480999#54480999
*/
ldr x0, pc_relative_ldr
b 1f
pc_relative_ldr:
ldr x0, .Lpc_relative_ldr
b 2f
.Lpc_relative_ldr:
.quad 0x123456789ABCDEF0
1:
2:
LKMC_ASSERT_EQ(x0, =0x123456789ABCDEF0)
/* Just for fun, we can also use relative numbers instead of labels.
@@ -68,7 +68,7 @@ pc_relative_ldr:
ldr x0, pc_relative_str
LKMC_ASSERT_EQ(x0, =0x0)
adr x1, pc_relative_str
ldr x0, pc_relative_ldr
ldr x0, .Lpc_relative_ldr
str x0, [x1]
ldr x0, pc_relative_str
LKMC_ASSERT_EQ(x0, =0x123456789ABCDEF0)