linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 8/9] ARM: zImage: remove the static qualifier from global data variables
Date: Fri, 29 Apr 2011 00:07:23 -0700	[thread overview]
Message-ID: <20110429070723.GS3755@atomide.com> (raw)
In-Reply-To: <1304031024-5121-9-git-send-email-nico@fluxnic.net>

* Nicolas Pitre <nico@fluxnic.net> [110428 15:47]:
> From: Nicolas Pitre <nicolas.pitre@linaro.org>
> 
> To be able to relocate the .bss section at run time independently from
> the rest of the code, we must make sure that no GOTOFF relocations are
> used with .bss symbols.  This usually means that no global variables can
> be marked static unless they're also const.
> 
> Let's remove the static qualifier from current offenders, or turn them
> into const variables when possible.  Next commit will ensure the build
> fails if one of those is reintroduced due to otherwise enforced coding
> standards for the kernel.
> 
> Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>

This fixes the DT data corruption issue I was seeing with the DT
append patch.

Tested-by: Tony Lindgren <tony@atomide.com>

  reply	other threads:[~2011-04-29  7:07 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-28 22:50 [PATCH 0/9] zImage fixes Nicolas Pitre
2011-04-28 22:50 ` [PATCH 1/9] ARM: zImage: make sure the stack is 64-bit aligned Nicolas Pitre
2011-04-29  6:58   ` Tony Lindgren
2011-04-28 22:50 ` [PATCH 2/9] ARM: zImage: Fix bad SP address after relocating kernel Nicolas Pitre
2011-04-28 22:50 ` [PATCH 3/9] ARM: zImage: make sure not to relocate on top of the relocation code Nicolas Pitre
2011-04-29  7:03   ` Tony Lindgren
2011-04-28 22:50 ` [PATCH 4/9] ARM: zImage: the page table memory must be considered before relocation Nicolas Pitre
2011-04-29  7:04   ` Tony Lindgren
2011-04-28 22:50 ` [PATCH 5/9] ARM: zImage: no need to get the decompressed size from the filesystem Nicolas Pitre
2011-04-28 22:50 ` [PATCH 6/9] ARM: zImage: simplify decompress_kernel() Nicolas Pitre
2011-04-28 22:50 ` [PATCH 7/9] ARM: zImage: don't ignore error returned from decompress() Nicolas Pitre
2011-04-29  7:05   ` Tony Lindgren
2011-04-28 22:50 ` [PATCH 8/9] ARM: zImage: remove the static qualifier from global data variables Nicolas Pitre
2011-04-29  7:07   ` Tony Lindgren [this message]
2011-04-29 20:12   ` Uwe Kleine-König
2011-04-29 20:37     ` Nicolas Pitre
2011-04-28 22:50 ` [PATCH 9/9] ARM: zImage: make sure no GOTOFF relocs are used with .bss symbols Nicolas Pitre
2011-04-29  7:11   ` Tony Lindgren

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=20110429070723.GS3755@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).