diff options
author | Alexander Graf <agraf@suse.de> | 2018-06-10 21:51:02 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-06-14 10:52:14 +0200 |
commit | e4679489c3fc12f87ce64347d2cebd5090ca9619 (patch) | |
tree | 4343f2619c67155718eb924865e123af4e3334ad /.gitignore | |
parent | de452c04c391948dbff68029e900fbb10dd5efb2 (diff) |
efi_loader: Convert runtime reset from switch to if statements
We currently handle the UEFI runtime reset / power off case handling via
a switch statement. Compilers (gcc in my case) may opt to handle these via
jump tables which they may conveniently put into .rodata which is not part
of the runtime section, so it will be unreachable when executed.
Fix this by just converting the switch statement into an if/else statement.
It produces smaller code that is faster and also correct because we no
longer refer .rodata from efi runtime code.
Reported-by: Andreas Färber <aferber@suse.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions