* [PATCH 1 of 1] x86_43: Put .note.* sections into a PT_NOTE segment in vmlinux
[not found] <2bf2abf6e97048bbef24.1154462451@ezr>
@ 2006-08-22 11:14 ` Ian Campbell
2006-08-22 11:33 ` Andi Kleen
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2006-08-22 11:14 UTC (permalink / raw)
To: Andrew Morton
Cc: Xen-devel, Jeremy Fitzhardinge, Virtualization, Linux Kernel,
Andi Kleen, Chris Wright, Ian Pratt, Eric W. Biederman,
Christoph Lameter
On Tue, 2006-08-01 at 13:00 -0700, Jeremy Fitzhardinge wrote:
> This patch will pack any .note.* section into a PT_NOTE segment in the
> output file.
[...]
> This only changes i386 for now, but I presume the corresponding
> changes for other architectures will be as simple.
Here is the patch for x86_64.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
diff -urN ref-linux-2.6.16.13/arch/x86_64/kernel/vmlinux.lds.S x86-64_elfnotes/arch/x86_64/kernel/vmlinux.lds.S
--- ref-linux-2.6.16.13/arch/x86_64/kernel/vmlinux.lds.S 2006-05-02 22:38:44.000000000 +0100
+++ x86-64_elfnotes/arch/x86_64/kernel/vmlinux.lds.S 2006-08-22 11:39:14.000000000 +0100
@@ -14,6 +14,11 @@
OUTPUT_ARCH(i386:x86-64)
ENTRY(phys_startup_64)
jiffies_64 = jiffies;
+PHDRS {
+ text PT_LOAD FLAGS(5); /* R_E */
+ data PT_LOAD FLAGS(7); /* RWE */
+ note PT_NOTE FLAGS(4); /* R__ */
+}
SECTIONS
{
. = __START_KERNEL;
@@ -26,7 +31,7 @@
KPROBES_TEXT
*(.fixup)
*(.gnu.warning)
- } = 0x9090
+ } :text = 0x9090
/* out-of-line lock text */
.text.lock : AT(ADDR(.text.lock) - LOAD_OFFSET) { *(.text.lock) }
@@ -43,7 +48,7 @@
.data : AT(ADDR(.data) - LOAD_OFFSET) {
*(.data)
CONSTRUCTORS
- }
+ } :data
_edata = .; /* End of data section */
@@ -201,4 +206,6 @@
STABS_DEBUG
DWARF_DEBUG
+
+ NOTES
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1 of 1] x86_43: Put .note.* sections into a PT_NOTE segment in vmlinux
2006-08-22 11:14 ` [PATCH 1 of 1] x86_43: Put .note.* sections into a PT_NOTE segment in vmlinux Ian Campbell
@ 2006-08-22 11:33 ` Andi Kleen
2006-08-22 11:43 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Andi Kleen @ 2006-08-22 11:33 UTC (permalink / raw)
To: Ian Campbell
Cc: Andrew Morton, Xen-devel, Jeremy Fitzhardinge, Virtualization,
Linux Kernel, Chris Wright, Ian Pratt, Eric W. Biederman,
Christoph Lameter
On Tue, 22 Aug 2006 12:14:18 +0100
Ian Campbell <Ian.Campbell@XenSource.com> wrote:
> On Tue, 2006-08-01 at 13:00 -0700, Jeremy Fitzhardinge wrote:
> > This patch will pack any .note.* section into a PT_NOTE segment in the
> > output file.
> [...]
> > This only changes i386 for now, but I presume the corresponding
> > changes for other architectures will be as simple.
>
> Here is the patch for x86_64.
Ok, but can you please resubmit with complete changelog/rationale?
Thanks,
-Andi
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1 of 1] x86_43: Put .note.* sections into a PT_NOTE segment in vmlinux
2006-08-22 11:33 ` Andi Kleen
@ 2006-08-22 11:43 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2006-08-22 11:43 UTC (permalink / raw)
To: Andi Kleen
Cc: Andrew Morton, Xen-devel, Jeremy Fitzhardinge, Virtualization,
Linux Kernel, Chris Wright, Ian Pratt, Eric W. Biederman,
Christoph Lameter
On Tue, 2006-08-22 at 13:33 +0200, Andi Kleen wrote:
> On Tue, 22 Aug 2006 12:14:18 +0100
> Ian Campbell <Ian.Campbell@XenSource.com> wrote:
>
> > On Tue, 2006-08-01 at 13:00 -0700, Jeremy Fitzhardinge wrote:
> > > This patch will pack any .note.* section into a PT_NOTE segment in the
> > > output file.
> > [...]
> > > This only changes i386 for now, but I presume the corresponding
> > > changes for other architectures will be as simple.
> >
> > Here is the patch for x86_64.
>
> Ok, but can you please resubmit with complete changelog/rationale?
Will do.
I've just noticed a bunch of sections (.vsyscall_*, .xtime and others)
which aren't getting put into segments for some reason. I'll figure that
out first...
Ian.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-08-22 11:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <2bf2abf6e97048bbef24.1154462451@ezr>
2006-08-22 11:14 ` [PATCH 1 of 1] x86_43: Put .note.* sections into a PT_NOTE segment in vmlinux Ian Campbell
2006-08-22 11:33 ` Andi Kleen
2006-08-22 11:43 ` Ian Campbell
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).