All of lore.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] linker script preprocessing problem
@ 2000-11-22  2:29 Jim Wilson
  0 siblings, 0 replies; only message in thread
From: Jim Wilson @ 2000-11-22  2:29 UTC (permalink / raw)
  To: linux-ia64

In order to compile the test10 kernel with current FSF binutils/gcc sources,
I needed to add the -traditional option to the command that preprocesses the
linker scripts.  Otherwise the cpp output isn't valid linker input because it
has been tokenized for C.

The output looks a little strange, so there might be a temporary FSF gcc
instability here, but in general you should always use -traditional when
preprocessing something that isn't C source code.  Or else use something
that isn't C specific, like m4.

arch/ia64/Makefile:

*** Makefile~	Mon Oct  9 17:54:53 2000
--- Makefile	Tue Nov 21 17:49:45 2000
*************** vmlinux: arch/$(ARCH)/vmlinux.lds
*** 96,102 ****
  
  arch/$(ARCH)/vmlinux.lds: arch/$(ARCH)/vmlinux.lds.S FORCE
  	$(CPP) -D__ASSEMBLY__ -C -P -I$(HPATH) -I$(HPATH)/asm-$(ARCH) \
! 		arch/$(ARCH)/vmlinux.lds.S > $@
  
  FORCE: ;
  
--- 96,102 ----
  
  arch/$(ARCH)/vmlinux.lds: arch/$(ARCH)/vmlinux.lds.S FORCE
  	$(CPP) -D__ASSEMBLY__ -C -P -I$(HPATH) -I$(HPATH)/asm-$(ARCH) \
! 		arch/$(ARCH)/vmlinux.lds.S -traditional > $@
  
  FORCE: ;
  


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

only message in thread, other threads:[~2000-11-22  2:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-22  2:29 [Linux-ia64] linker script preprocessing problem Jim Wilson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.