Skip to content

Commit

Permalink
m68k: vmlinux-std/sun3.lds.S cleanup - use PAGE_SIZE macro
Browse files Browse the repository at this point in the history
This patch includes page.h header into linker script that
allow us to use PAGE_SIZE macro instead of numeric constant

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Cyrill Gorcunov authored and Linus Torvalds committed Jul 21, 2008
1 parent e945b56 commit 97d26e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* ld script to make m68k Linux kernel */

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

OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
OUTPUT_ARCH(m68k)
Expand Down Expand Up @@ -41,7 +42,7 @@ SECTIONS
_edata = .; /* End of data section */

/* will be freed after init */
. = ALIGN(4096); /* Init code and data */
. = ALIGN(PAGE_SIZE); /* Init code and data */
__init_begin = .;
.init.text : {
_sinittext = .;
Expand Down
7 changes: 4 additions & 3 deletions arch/m68k/kernel/vmlinux-sun3.lds
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/* ld script to make m68k Linux kernel */

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

OUTPUT_FORMAT("elf32-m68k", "elf32-m68k", "elf32-m68k")
OUTPUT_ARCH(m68k)
Expand Down Expand Up @@ -34,7 +35,7 @@ SECTIONS
_edata = .;

/* will be freed after init */
. = ALIGN(8192); /* Init code and data */
. = ALIGN(PAGE_SIZE); /* Init code and data */
__init_begin = .;
.init.text : {
_sinittext = .;
Expand All @@ -61,12 +62,12 @@ __init_begin = .;
}
SECURITY_INIT
#ifdef CONFIG_BLK_DEV_INITRD
. = ALIGN(8192);
. = ALIGN(PAGE_SIZE);
__initramfs_start = .;
.init.ramfs : { *(.init.ramfs) }
__initramfs_end = .;
#endif
. = ALIGN(8192);
. = ALIGN(PAGE_SIZE);
__init_end = .;
.data.init.task : { *(.data.init_task) }

Expand Down

0 comments on commit 97d26e7

Please sign in to comment.