Re: [PATCH] initramfs: Fix build break on symbol-prefixed archs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michal Marek
Date: Tuesday, November 30, 2010 - 8:36 am

On Mon, Nov 29, 2010 at 06:29:37PM -0500, Mike Frysinger wrote:

Argh, yes. I only merged your patch to use -DSYMBOL_PREFIX when preprocessing
.S files ("initramfs: Fix build break on symbol-prefixed archs") as d63f6d1,
but did not realize that the main part of Hendrik's patch is missing :-/.


I deleted the Makefile change, which is now obsoleted by d63f6d1, the
result would look like below. Mike, does mainline with this patch build
on Blackfin now?

Michal

From: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Subject: [PATCH] initramfs: Really fix build break on symbol-prefixed archs

Define the __initramfs_size variable using VMLINUX_SYMBOL() to take care
of symbol-prefixed architectures, for example, blackfin.

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Mike Frysinger <vapier.adi@gmail.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>,
Cc: Michal Marek <mmarek@suse.cz>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
[mmarek: leave out Makefile change, since d63f6d1 already takes care of the
 SYMBOL_PREFIX define]
Signed-off-by: Michal Marek <mmarek@suse.cz>

diff --git a/usr/initramfs_data.S b/usr/initramfs_data.S
index 792a750..c14322d 100644
--- a/usr/initramfs_data.S
+++ b/usr/initramfs_data.S
@@ -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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] initramfs: Cleanup and fix initramfs size calc ..., Hendrik Brueckner, (Tue Aug 31, 1:23 am)
[PATCH 2/2] initramfs: Fix initramfs size calculation, Hendrik Brueckner, (Tue Aug 31, 1:23 am)
Re: [PATCH 2/2] initramfs: Fix initramfs size calculation, Américo Wang, (Wed Sep 1, 12:47 am)
Re: [PATCH 2/2] initramfs: Fix initramfs size calculation, Mike Frysinger, (Sun Oct 17, 11:28 am)
Re: [PATCH 2/2] initramfs: Fix initramfs size calculation, Hendrik Brueckner, (Mon Oct 18, 3:37 am)
Re: [PATCH 2/2] initramfs: Fix initramfs size calculation, Mike Frysinger, (Mon Oct 18, 4:07 pm)
[PATCH] initramfs: Fix build break on symbol-prefixed archs, Hendrik Brueckner, (Tue Oct 19, 4:08 am)
Re: [PATCH] initramfs: Fix build break on symbol-prefixed ..., Michal Marek, (Tue Nov 30, 8:36 am)