From: ebiederm@xmission.com (Eric W. Biederman)
To: "Yinghai Lu" <yhlu.kernel@gmail.com>
Cc: "Andi Kleen" <ak@suse.de>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Vivek Goyal" <vgoyal@in.ibm.com>,
"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH]x86_64: build and use GDT on copied compressed kernel
Date: Sun, 13 May 2007 01:06:51 -0600 [thread overview]
Message-ID: <m11whlqk1g.fsf@ebiederm.dsl.xmission.com> (raw)
In-Reply-To: <86802c440705122355r5f811d5bg2006b0b22ca885e6@mail.gmail.com> (Yinghai Lu's message of "Sat, 12 May 2007 23:55:34 -0700")
"Yinghai Lu" <yhlu.kernel@gmail.com> writes:
> On 5/12/07, Eric W. Biederman <ebiederm@xmission.com> wrote:
>>
>> For data segments we never use that GDT, it is only for the code
>> segment we use the GDT and that only to get us into 64bit mode.
>>
>
> after the patch
> linux:/home/yhlu/xx/xx/kernel/linux-2.6/arch/x86_64/boot/compressed #
> readelf -e vmlinux
> ...
> Section Headers:
> [Nr] Name Type Address Offset
> Size EntSize Flags Link Info Align
> [ 0] NULL 0000000000000000 00000000
> 0000000000000000 0000000000000000 0 0 0
> [ 1] .text PROGBITS 0000000000000000 00100000
> 000000000032617c 0000000000000000 AX 0 0 16
> [ 2] .rodata PROGBITS 0000000000326180 00426180
> 0000000000000400 0000000000000000 A 0 0 32
> [ 3] .eh_frame PROGBITS 0000000000326580 00426580
> 0000000000000210 0000000000000000 A 0 0 8
> [ 4] .data PROGBITS 0000000000326790 00426790
> 0000000000000008 0000000000000000 WA 0 0 8
> [ 5] .bss NOBITS 00000000003267a0 00426798
> 000000000000b860 0000000000000000 WA 0 0 32
> [ 6] .comment PROGBITS 0000000000000000 00426798
> 0000000000000035 0000000000000000 0 0 1
> [ 7] .shstrtab STRTAB 0000000000000000 004267cd
> 0000000000000047 0000000000000000 0 0 1
> [ 8] .symtab SYMTAB 0000000000000000 00426a98
> 00000000000007c8 0000000000000018 9 60 8
> [ 9] .strtab STRTAB 0000000000000000 00427260
> 0000000000000350 0000000000000000 0 0 1
> Key to Flags:
> W (write), A (alloc), X (execute), M (merge), S (strings)
> I (info), L (link order), G (group), x (unknown)
> O (extra OS processing required) o (OS specific), p (processor specific)
>
> after the patch, it seems .data section size still have 8 bytes.
> before that will 0x28.
> don't know what are the 8 bytes.
Probably variables in misc.c
Eric
next prev parent reply other threads:[~2007-05-13 7:07 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-13 5:33 Yinghai Lu
2007-05-13 5:52 ` Andi Kleen
2007-05-13 6:41 ` Yinghai Lu
2007-05-13 6:09 ` Eric W. Biederman
2007-05-13 6:29 ` Yinghai Lu
2007-05-13 6:48 ` Eric W. Biederman
2007-05-13 6:55 ` Yinghai Lu
2007-05-13 7:06 ` Eric W. Biederman [this message]
2007-05-13 7:27 ` Yinghai Lu
2007-05-13 18:01 ` Yinghai Lu
2007-05-13 19:49 ` Eric W. Biederman
2007-05-13 21:06 ` Yinghai Lu
2007-05-13 21:23 ` Eric W. Biederman
2007-05-14 17:26 ` [PATCH] serial: set RTS and DTR if flow is 'r' Yinghai Lu
2007-05-14 17:54 ` Randy Dunlap
2007-05-14 17:57 ` [PATCH] serial: set RTS and DTR if flow is 'r' --- resend Yinghai Lu
2007-05-14 18:10 ` Russell King
2007-05-14 19:04 ` Yinghai Lu
2007-05-14 19:19 ` Russell King
2007-05-14 19:46 ` Yinghai Lu
2007-05-14 19:50 ` Russell King
2007-05-14 20:04 ` Yinghai Lu
2007-05-15 20:48 ` [PATCH] serial: set DTR in uart for kernel serial console Yinghai Lu
2007-05-22 19:31 ` PATCH] serial: convert early_uart to earlycon for 8250 Yinghai Lu
2007-05-28 10:51 ` Russell King
2007-05-28 17:50 ` Yinghai Lu
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=m11whlqk1g.fsf@ebiederm.dsl.xmission.com \
--to=ebiederm@xmission.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vgoyal@in.ibm.com \
--cc=yhlu.kernel@gmail.com \
/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
all inboxes | Powered by JetHome®