sandbox: Rename EFI runtime sections
authorAndrew Scull <ascull@google.com>
Mon, 30 May 2022 10:00:02 +0000 (10:00 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 23 Jun 2022 16:58:18 +0000 (12:58 -0400)
commitaac53d3d96a236c1e62f250ed7ffa8cf9b0e44a6
tree2f71df37163ed89da8255335ab11c970ec421ae9
parent337b26e4688720560662246eb7703860b68bd6e2
sandbox: Rename EFI runtime sections

Rename the sections used for placing the EFI runtime so that they don't
start with a '.'. ELF says that sections starting with a '.' are
reserved for system use, but the sandbox runs as a normal user process
so should be using user sections instead.

Clang's ASAN adds redzones to non-user sections and the extra padding
meant that the list of options was being corrupted. Naming the sections
as user sections avoids this issue as clang handles them as we intended.

Signed-off-by: Andrew Scull <ascull@google.com>
arch/sandbox/cpu/u-boot.lds
arch/sandbox/lib/sections.c