public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] PowerPC: Change -fpic flag to -fPIC flag in the config.mk
@ 2012-04-18  3:19 Chunhe Lan
  2012-04-18  6:03 ` Wolfgang Denk
  0 siblings, 1 reply; 12+ messages in thread
From: Chunhe Lan @ 2012-04-18  3:19 UTC (permalink / raw)
  To: u-boot

The -fPIC/-fpic flag belongs with -mrelocatable. The -fpic flag can
limit the size of the GOT and produce smaller binaries, so it causes
some GOT entries to be lost in the gcc 4.6 version. But -fPIC flag
allows the maximum possible size of the GOT entries.

However, currently -mrelocatable promotes -fpic flag to -fPIC flag.

This reverts that portion of the
commit 33ee4c92339ee386662c0ee2d221098c5cc8b07e.

Signed-off-by: Chunhe Lan <Chunhe.Lan@freescale.com>
---
 arch/powerpc/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/config.mk b/arch/powerpc/config.mk
index a307154..7c14ff6 100644
--- a/arch/powerpc/config.mk
+++ b/arch/powerpc/config.mk
@@ -25,7 +25,7 @@ CROSS_COMPILE ?= ppc_8xx-
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
 LDFLAGS_FINAL += --gc-sections
-PLATFORM_RELFLAGS += -fpic -mrelocatable -ffunction-sections -fdata-sections
+PLATFORM_RELFLAGS += -fPIC -mrelocatable -ffunction-sections -fdata-sections
 PLATFORM_CPPFLAGS += -DCONFIG_PPC -D__powerpc__
 PLATFORM_LDFLAGS  += -n
 
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-04-27  7:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1334717055-16652-1-git-send-email-Chunhe.Lan@freescale.com>
2012-04-18 16:10 ` [U-Boot] [PATCH] PowerPC: Change -fpic flag to -fPIC flag in the config.mk Scott Wood
2012-04-18  3:19 Chunhe Lan
2012-04-18  6:03 ` Wolfgang Denk
     [not found]   ` <4F8E5F11.4020904@freescale.com>
2012-04-18  7:11     ` Wolfgang Denk
2012-04-18  7:32   ` Chunhe Lan
2012-04-18  9:20     ` Wolfgang Denk
2012-04-18 10:07     ` Joakim Tjernlund
2012-04-25 19:01       ` Scott Wood
2012-04-26  6:53         ` Joakim Tjernlund
2012-04-26 21:26           ` Scott Wood
2012-04-27  7:05             ` Joakim Tjernlund
2012-04-27  7:10               ` Joakim Tjernlund

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