]> git.baikalelectronics.ru Git - kernel.git/commit
x86/power: Support objtool validation in hibernate_asm_64.S
authorJosh Poimboeuf <jpoimboe@redhat.com>
Thu, 21 Jan 2021 21:29:36 +0000 (15:29 -0600)
committerJosh Poimboeuf <jpoimboe@redhat.com>
Tue, 26 Jan 2021 17:33:04 +0000 (11:33 -0600)
commit02744b4556361731e93707c79026adcd340b2604
tree5c7bf931563a2a1f9d755aec12aeac6f5891fe95
parent65bc59e23ce54c3dca67820315626f745bcc39cc
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
arch/x86/power/Makefile
arch/x86/power/hibernate_asm_64.S