* [PATCH][PPC32] Use -fPIC instead of -mrelocatable-lib
@ 2004-06-03 11:34 Paul Mackerras
0 siblings, 0 replies; only message in thread
From: Paul Mackerras @ 2004-06-03 11:34 UTC (permalink / raw)
To: akpm, torvalds; +Cc: linux-kernel, benh, trini
The ppc32 boot code has a couple of files that are executed very early
on before the kernel is mapped at the address it is linked at. We
have been using -mrelocatable-lib to compile these files, but
apparently -mrelocatable-lib is deprecated and the gcc developers are
threatening to remove it. In fact the -fPIC flag does what we need.
This patch changes -mrelocatable-lib to -fPIC.
Signed-off-by: Paul Mackerras <paulus@samba.org>
diff -urN linux-2.5/arch/ppc/syslib/Makefile pmac-2.5/arch/ppc/syslib/Makefile
--- linux-2.5/arch/ppc/syslib/Makefile 2004-05-15 13:32:15.000000000 +1000
+++ pmac-2.5/arch/ppc/syslib/Makefile 2004-05-15 15:05:42.000000000 +1000
@@ -9,8 +9,8 @@
EXTRA_AFLAGS := -Wa,-m405
endif
-CFLAGS_prom_init.o += -mrelocatable-lib
-CFLAGS_btext.o += -mrelocatable-lib
+CFLAGS_prom_init.o += -fPIC
+CFLAGS_btext.o += -fPIC
obj-$(CONFIG_PPCBUG_NVRAM) += prep_nvram.o
obj-$(CONFIG_PPC_OCP) += ocp.o
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-06-03 11:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 11:34 [PATCH][PPC32] Use -fPIC instead of -mrelocatable-lib Paul Mackerras
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®