diff options
author | Josh Poimboeuf <jpoimboe@redhat.com> | 2021-01-21 15:29:36 -0600 |
---|---|---|
committer | Josh Poimboeuf <jpoimboe@redhat.com> | 2021-01-26 11:33:04 -0600 |
commit | 9077c016a39c78054f03e0354ad8409b47af68dc (patch) | |
tree | 5c7bf931563a2a1f9d755aec12aeac6f5891fe95 /arch/x86/power/Makefile | |
parent | 125f0b7d24216f37a9683b3899fa45101090f098 (diff) | |
download | linux-9077c016a39c78054f03e0354ad8409b47af68dc.tar.bz2 |
x86/power: Support objtool validation in hibernate_asm_64.S
The OBJECT_FILES_NON_STANDARD annotation is used to tell objtool to
ignore a file. File-level ignores won't work when validating vmlinux.o.
Instead, convert restore_image() and core_restore_code() to be ELF
functions. Their code is conventional enough for objtool to be able to
understand them.
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Link: https://lore.kernel.org/r/974f8ceb5385e470f72e93974c70ab5c894bb0dc.1611263462.git.jpoimboe@redhat.com
Diffstat (limited to 'arch/x86/power/Makefile')
-rw-r--r-- | arch/x86/power/Makefile | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/power/Makefile b/arch/x86/power/Makefile index 6907b523e856..3ff80156f21a 100644 --- a/arch/x86/power/Makefile +++ b/arch/x86/power/Makefile @@ -1,5 +1,4 @@ # SPDX-License-Identifier: GPL-2.0 -OBJECT_FILES_NON_STANDARD_hibernate_asm_$(BITS).o := y # __restore_processor_state() restores %gs after S3 resume and so should not # itself be stack-protected |