From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] PowerPC: Change -fpic flag to -fPIC flag in the config.mk
Date: Wed, 18 Apr 2012 11:10:40 -0500 [thread overview]
Message-ID: <4F8EE780.7030209@freescale.com> (raw)
In-Reply-To: <1334717055-16652-1-git-send-email-Chunhe.Lan@freescale.com>
On 04/17/2012 09:44 PM, Chunhe Lan wrote:
> 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>
Please provide a better description, not something partially copied from
the commit message that you're partially reverting. If -mrelocatable
promotes -fpic to -fPIC how does this change have any effect? One has
to go back to the commit message of 33ee4c to see that this was a bug
that was fixed in GCC 4.6, so it's no longer "currently" doing that.
What is the limit for -fpic? Do we get errors if we overflow, or does
the toolchain silently generate a bad image (sounds like a bug if the
latter)? What target are you seeing problems with?
Also, when (partially) reverting a patch, please include at least the
subject line of the patch in addition to the SHA-1, and CC the author of
the patch.
-Scott
> ---
> 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
>
next parent reply other threads:[~2012-04-18 16:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1334717055-16652-1-git-send-email-Chunhe.Lan@freescale.com>
2012-04-18 16:10 ` Scott Wood [this message]
2012-04-18 3:19 [U-Boot] [PATCH] PowerPC: Change -fpic flag to -fPIC flag in the config.mk 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F8EE780.7030209@freescale.com \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox