-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MODSIGN: Avoid using .incbin in C source
Using the asm .incbin statement in C sources breaks any gcc wrapper which assumes that preprocessed C source is self-contained. Use a separate .S file to include the siging key and certificate. [ This means we no longer need SYMBOL_PREFIX which is defined in kernel.h from cbdbf2a, so I removed it -- RR ] Tested-by: Michal Marek <mmarek@suse.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Acked-by: James Hogan <james.hogan@imgtec.com>
- Loading branch information
Takashi Iwai
authored and
Rusty Russell
committed
Dec 14, 2012
1 parent
82fab44
commit 919aa45
Showing
3 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* SYMBOL_PREFIX defined on commandline from CONFIG_SYMBOL_PREFIX */ | ||
#ifndef SYMBOL_PREFIX | ||
#define ASM_SYMBOL(sym) sym | ||
#else | ||
#define PASTE2(x,y) x##y | ||
#define PASTE(x,y) PASTE2(x,y) | ||
#define ASM_SYMBOL(sym) PASTE(SYMBOL_PREFIX, sym) | ||
#endif | ||
|
||
#define GLOBAL(name) \ | ||
.globl ASM_SYMBOL(name); \ | ||
ASM_SYMBOL(name): | ||
|
||
.section ".init.data","aw" | ||
|
||
GLOBAL(modsign_certificate_list) | ||
.incbin "signing_key.x509" | ||
.incbin "extra_certificates" | ||
GLOBAL(modsign_certificate_list_end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters