Thread (31 messages) 31 messages, 6 authors, 2014-08-29
STALE4295d
Revisions (4)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 current

[PATCH 8/9] arm64: Add missing AT() macros to vmlinux.lds.S

From: AKASHI Takahiro <hidden>
Date: 2014-08-27 06:53:09

On 08/27/2014 04:33 AM, Geoff Levand wrote:
Catalin,

On Tue, 2014-08-26 at 17:08 +0100, Catalin Marinas wrote:
quoted
On Fri, Aug 22, 2014 at 08:49:17PM +0100, Geoff Levand wrote:
quoted
The existing arm64 linker script uses some pre-defined section macros from
vmlinux.lds.h, all of which include a section load address attribute of
'AT(ADDR(section) - LOAD_OFFSET)'.  LOAD_OFFSET is not defined for arm64, and
defaults to zero, so this mix of section attributions has no ill effect.

For consistency and to clear the way for a possible definition of LOAD_OFFSET
add any missing AT() macros to vmlinux.lds.S.
So, what's the possible definition for LOAD_OFFSET on arm64?
Well, this is just intended as a cleanup for vmlinux.lds.S, but I think
a LOAD_OFFSET definition may be needed for kdump.

Takahiro, could you comment?
My current implementation of kdump doesn't assume use of LOAD_OFFSET since it can
utilize, as crash (2nd stage) kernel, the same one as 1st stage kernel.

The loaded address and entry address will be handled properly by userspace tool, kexec,
as far as TEXT_OFFSET is reasonably small (that is, fit into the memory region dedicated
for crash kernel).

-Takahiro AKASHI
-Geoff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help