mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* any value in centralizing common 32/64 x86 content in vmlinux.lds.S?
@ 2007-12-02  8:08 Robert P. J. Day
  0 siblings, 0 replies; only message in thread
From: Robert P. J. Day @ 2007-12-02  8:08 UTC (permalink / raw)
  To: Linux Kernel Mailing List


  given the amount of common content between
arch/x86/kernel/vmlinux_32.lds.S and arch/x86/kernel/vmlinux_64.lds.S,
what about just defining macros for some of that stuff in
arch/x86/kernel/vmlinux.lds.S and cutting down on all the duplication?

  as is done in include/asm-generic/vmlinux.lds.S, why not just
define some handy macros, like:

#define INITRAMFS(align)					\
	. = ALIGN(align);					\
	.init.ramfs : AT(ADDR(.init.ramfs) - LOAD_OFFSET) {	\
	__initramfs_start = .;					\
	*(.init.ramfs)						\
	__initramfs_end = .;					\
	}

or something similar.

  i'm guessing there's a fair amount of content like that that can be
coalesced, no?  it would also standardize some of the niggling
differences between some of that content between the two files.

rday

========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://crashcourse.ca
========================================================================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-02  8:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-02  8:08 any value in centralizing common 32/64 x86 content in vmlinux.lds.S? Robert P. J. Day

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®