Skip to content
Commit 0648b132 authored by Andrew Scull's avatar Andrew Scull Committed by Tom Rini
Browse files

sandbox: Rename getopt sections



Rename the sections used for defining sandbox command line options 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: default avatarAndrew Scull <ascull@google.com>
parent aac53d3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment