lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Sat,  5 Jun 2010 14:14:45 -0400
From:	Mike Frysinger <vapier@...too.org>
To:	Tim Abbott <tabbott@...lice.com>
Cc:	linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] vmlinux.lds.h: allow people to set a smaller rootfs alignment

Add a new INIT_RAMFS() define to compliment the existing INIT_RAM_FS, but
this one lets people control the alignment.

Signed-off-by: Mike Frysinger <vapier@...too.org>
---
 include/asm-generic/vmlinux.lds.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h
index 48c5299..9ca268f 100644
--- a/include/asm-generic/vmlinux.lds.h
+++ b/include/asm-generic/vmlinux.lds.h
@@ -619,14 +619,15 @@
 		VMLINUX_SYMBOL(__security_initcall_end) = .;
 
 #ifdef CONFIG_BLK_DEV_INITRD
-#define INIT_RAM_FS							\
-	. = ALIGN(PAGE_SIZE);						\
+#define INIT_RAMFS(align)						\
+	. = ALIGN(align);						\
 	VMLINUX_SYMBOL(__initramfs_start) = .;				\
 	*(.init.ramfs)							\
 	VMLINUX_SYMBOL(__initramfs_end) = .;
 #else
-#define INIT_RAM_FS
+#define INIT_RAMFS(align)
 #endif
+#define INIT_RAM_FS INIT_RAMFS(PAGE_SIZE)
 
 /*
  * Default discarded sections.
-- 
1.7.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ