mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
baremetal: build userland/ programs using baremetal path property instead of symlinks
Otherwise I'll go crazy with symlink action.
This commit is contained in:
@@ -18,6 +18,12 @@ LKMC_PROLOGUE
|
||||
|
||||
/* Now with a memory stored value. */
|
||||
.data
|
||||
/* TODO why is this align required, and why only the in the baremetal toolchain?
|
||||
* Otherwise at edfbe9f0d7e9cc40cffd1c68c7c7c30a47fda2a8 + 1 was failing with:
|
||||
* /path/to/linux-kernel-module-cheat/userland/arch/aarch64/fadd_scalar.S:28:(.text+0x3c): relocation truncated to fit: R_AARCH64_LD_PREL_LO19 against `.data'
|
||||
* /path/to/linux-kernel-module-cheat/userland/arch/aarch64/fadd_scalar.S:28: warning: One possible cause of this error is that the symbol is being referenced in the indicated code as if it had a larger alignment than was declared where it was defined.
|
||||
*/
|
||||
.align 4
|
||||
my_double_0:
|
||||
.double 1.5
|
||||
my_double_1:
|
||||
|
||||
@@ -74,5 +74,6 @@ pc_relative_ldr:
|
||||
LKMC_ASSERT_EQ(x0, =0x123456789ABCDEF0)
|
||||
LKMC_EPILOGUE
|
||||
.data
|
||||
.align 4
|
||||
pc_relative_str:
|
||||
.quad 0x0000000000000000
|
||||
|
||||
Reference in New Issue
Block a user