Skip to content

Commit

Permalink
initramfs: Really fix build break on symbol-prefixed archs
Browse files Browse the repository at this point in the history
Define the __initramfs_size variable using VMLINUX_SYMBOL() to take care
of symbol-prefixed architectures, for example, blackfin.

Signed-off-by: Hendrik Brueckner <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Hendrik Brueckner <[email protected]>,
Cc: Michal Marek <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
[mmarek: leave out Makefile change, since d63f6d1 already takes care of the
 SYMBOL_PREFIX define]
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
hbrueckner authored and michal42 committed Dec 1, 2010
1 parent c8ddb27 commit 1198c6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usr/initramfs_data.S
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@
*/

#include <linux/stringify.h>
#include <asm-generic/vmlinux.lds.h>

.section .init.ramfs,"a"
__irf_start:
.incbin __stringify(INITRAMFS_IMAGE)
__irf_end:
.section .init.ramfs.info,"a"
.globl __initramfs_size
__initramfs_size:
.globl VMLINUX_SYMBOL(__initramfs_size)
VMLINUX_SYMBOL(__initramfs_size):
#ifdef CONFIG_64BIT
.quad __irf_end - __irf_start
#else
Expand Down

0 comments on commit 1198c6d

Please sign in to comment.