From: Daniel Kiper <daniel.kiper@oracle.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: andrew.cooper3@citrix.com, keir@xen.org, xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2 02/23] x86/boot: copy only text section from *.lnk file to *.bin file
Date: Wed, 22 Jul 2015 15:31:36 +0200 [thread overview]
Message-ID: <20150722133136.GL3479@olila.local.net-space.pl> (raw)
In-Reply-To: <55AF6A230200007800093DE1@prv-mh.provo.novell.com>
On Wed, Jul 22, 2015 at 02:02:11AM -0600, Jan Beulich wrote:
> >>> On 21.07.15 at 19:23, <daniel.kiper@oracle.com> wrote:
> > First of all ld generates .got.plt section and objcopy copy it to binary
> > file.
> > It is not needed because we do not link our stuff here with shared
> > libraries.
> > So, we can use -R objcopy option to remove it (if you do not like -j .text).
> > This way we could save 15 bytes (at least on my machines).
>
> So I checked and did find no .got.plt at all on a machine using
> binutils 2.25 and an empty one on a machine using an older
> version. So I'm curious what you're seeing present in that
> table (without any of your patches applied).
Here it is:
[...]
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk Inf Al
[ 0] NULL 00000000 000000 000000 00 0 0 0
[ 1] .text PROGBITS 00000000 000080 000705 00 WAX 0 0 16
[ 2] .eh_frame PROGBITS 00000708 000788 000104 00 A 0 0 4
[ 3] .got.plt PROGBITS 0000080c 00088c 00000c 04 WA 0 0 4
[ 4] .comment PROGBITS 00000000 000898 00001c 01 MS 0 0 1
[ 5] .debug_aranges PROGBITS 00000000 0008b4 000020 00 0 0 1
[ 6] .debug_info PROGBITS 00000000 0008d4 000c2c 00 0 0 1
[ 7] .debug_abbrev PROGBITS 00000000 001500 000303 00 0 0 1
[ 8] .debug_line PROGBITS 00000000 001803 000180 00 0 0 1
[ 9] .debug_str PROGBITS 00000000 001983 000236 01 MS 0 0 1
[10] .debug_loc PROGBITS 00000000 001bb9 0007b8 00 0 0 1
[11] .debug_ranges PROGBITS 00000000 002371 000030 00 0 0 1
[12] .shstrtab STRTAB 00000000 0023a1 000096 00 0 0 1
[13] .symtab SYMTAB 00000000 002690 000290 10 14 36 4
[14] .strtab STRTAB 00000000 002920 000162 00 0 0 1
[...]
It is generated using ld from binutils 2.22.
I was thinking that -static ld option would remove .got.plt but it did not.
Daniel
next prev parent reply other threads:[~2015-07-22 13:31 UTC|newest]
Thread overview: 201+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-20 14:28 [PATCH v2 00/23] x86: multiboot2 protocol support Daniel Kiper
2015-07-20 14:28 ` [PATCH v2 01/23] x86/boot: remove unneeded instruction Daniel Kiper
2015-07-20 14:28 ` Daniel Kiper
2015-07-24 16:22 ` Konrad Rzeszutek Wilk
2015-07-24 16:22 ` Konrad Rzeszutek Wilk
2015-07-27 19:46 ` Daniel Kiper
2015-08-10 16:07 ` Konrad Rzeszutek Wilk
2015-08-10 16:07 ` Konrad Rzeszutek Wilk
2015-07-27 19:46 ` Daniel Kiper
2015-07-20 14:28 ` [PATCH v2 02/23] x86/boot: copy only text section from *.lnk file to *.bin file Daniel Kiper
2015-07-20 14:28 ` Daniel Kiper
2015-07-21 9:35 ` Jan Beulich
2015-07-21 17:23 ` Daniel Kiper
2015-07-22 5:14 ` Jan Beulich
2015-07-22 8:02 ` Jan Beulich
2015-07-22 13:31 ` Daniel Kiper [this message]
2015-07-22 14:07 ` Jan Beulich
2015-07-20 14:28 ` [PATCH v2 03/23] x86: zero BSS using stosl instead of stosb Daniel Kiper
2015-07-21 9:37 ` Jan Beulich
2015-07-21 18:23 ` Daniel Kiper
2015-07-22 5:18 ` Jan Beulich
2015-07-22 8:42 ` Andrew Cooper
2015-07-22 10:04 ` Jan Beulich
2015-07-22 11:22 ` Andrew Cooper
2015-07-22 11:48 ` Jan Beulich
2015-07-20 14:28 ` Daniel Kiper
2015-07-20 14:28 ` [PATCH v2 04/23] x86/boot: call reloc() using cdecl calling convention Daniel Kiper
2015-07-20 14:28 ` Daniel Kiper
2015-08-10 16:33 ` Konrad Rzeszutek Wilk
2015-08-10 16:33 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-17 15:44 ` Jan Beulich
2015-08-17 15:44 ` Jan Beulich
2015-07-20 14:29 ` [PATCH v2 05/23] x86/boot/reloc: create generic alloc and copy functions Daniel Kiper
2015-08-17 15:51 ` Jan Beulich
2015-08-17 15:51 ` Jan Beulich
2015-08-17 22:03 ` Daniel Kiper
2015-07-20 14:29 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 06/23] x86/boot: use %ecx instead of %eax Daniel Kiper
2015-07-20 14:29 ` Daniel Kiper
2015-08-10 16:36 ` Konrad Rzeszutek Wilk
2015-08-10 16:36 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 07/23] x86/boot/reloc: Rename some variables and rearrange code a bit Daniel Kiper
2015-08-10 16:40 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 16:40 ` Konrad Rzeszutek Wilk
2015-08-17 15:55 ` Jan Beulich
2015-08-17 15:55 ` Jan Beulich
2015-07-20 14:29 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 08/23] x86: add multiboot2 protocol support Daniel Kiper
2015-08-10 19:17 ` Konrad Rzeszutek Wilk
2015-08-10 19:17 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-13 19:22 ` Daniel Kiper
2015-08-14 10:03 ` Jan Beulich
2015-08-15 6:00 ` Andrew Cooper
2015-08-15 6:00 ` Andrew Cooper
2015-08-14 10:03 ` Jan Beulich
2015-08-13 19:22 ` Daniel Kiper
2015-08-18 8:12 ` Jan Beulich
2015-08-18 12:00 ` Daniel Kiper
2015-08-18 14:20 ` Jan Beulich
2015-07-20 14:29 ` [PATCH v2 09/23] efi: create efi_enabled() Daniel Kiper
2015-08-10 19:20 ` Konrad Rzeszutek Wilk
2015-08-10 19:20 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-20 15:18 ` Jan Beulich
2015-08-22 12:33 ` Daniel Kiper
2015-08-22 12:33 ` Daniel Kiper
2015-08-24 11:29 ` Jan Beulich
2015-07-20 14:29 ` [PATCH v2 10/23] efi: build xen.gz with EFI code Daniel Kiper
2015-07-20 14:29 ` Daniel Kiper
2015-08-10 19:24 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:24 ` Konrad Rzeszutek Wilk
2015-08-20 15:39 ` Jan Beulich
2015-08-22 13:59 ` Daniel Kiper
2015-08-22 13:59 ` Daniel Kiper
2015-08-24 11:35 ` Jan Beulich
2015-08-24 20:54 ` Daniel Kiper
2015-08-25 10:50 ` Andrew Cooper
2015-08-25 10:50 ` Andrew Cooper
2015-08-25 15:39 ` Daniel Kiper
2015-08-25 15:39 ` Daniel Kiper
2015-08-25 12:09 ` Jan Beulich
2015-08-25 12:09 ` Jan Beulich
2015-08-25 16:31 ` Daniel Kiper
2015-08-25 16:31 ` Daniel Kiper
2015-08-26 6:46 ` Jan Beulich
2015-08-26 12:33 ` Daniel Kiper
2015-08-26 12:33 ` Daniel Kiper
2015-08-26 12:40 ` Jan Beulich
2015-08-26 12:58 ` Daniel Kiper
2015-08-26 12:58 ` Daniel Kiper
2015-08-26 12:40 ` Jan Beulich
2015-08-26 6:46 ` Jan Beulich
2015-08-24 20:54 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 11/23] efi: split out efi_init() Daniel Kiper
2015-08-10 19:25 ` Konrad Rzeszutek Wilk
2015-08-10 19:25 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 12/23] efi: split out efi_console_set_mode() Daniel Kiper
2015-08-10 19:25 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:25 ` Konrad Rzeszutek Wilk
2015-07-20 14:29 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 13/23] efi: split out efi_get_gop() Daniel Kiper
2015-07-20 14:29 ` Daniel Kiper
2015-08-10 19:27 ` Konrad Rzeszutek Wilk
2015-08-10 19:27 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 14/23] efi: split out efi_find_gop_mode() Daniel Kiper
2015-08-10 19:31 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:31 ` Konrad Rzeszutek Wilk
2015-08-20 15:48 ` Jan Beulich
2015-07-20 14:29 ` [PATCH v2 15/23] efi: split out efi_tables() Daniel Kiper
2015-08-10 19:32 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:32 ` Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 16/23] efi: split out efi_variables() Daniel Kiper
2015-08-10 19:34 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:34 ` Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 17/23] efi: split out efi_set_gop_mode() Daniel Kiper
2015-08-10 19:34 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:34 ` Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 18/23] efi: split out efi_exit_boot() Daniel Kiper
2015-07-20 14:29 ` Daniel Kiper
2015-08-10 19:36 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 19:36 ` Konrad Rzeszutek Wilk
2015-07-20 14:29 ` [PATCH v2 19/23] x86/efi: create new early memory allocator Daniel Kiper
2015-08-10 19:49 ` Konrad Rzeszutek Wilk
2015-08-10 19:49 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-27 11:23 ` Jan Beulich
2015-08-27 11:23 ` Jan Beulich
2015-07-20 14:29 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 20/23] x86: add multiboot2 protocol support for EFI platforms Daniel Kiper
2015-08-10 20:07 ` Konrad Rzeszutek Wilk
2015-08-10 20:07 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-11 15:23 ` Konrad Rzeszutek Wilk
2015-08-11 15:23 ` Konrad Rzeszutek Wilk
2015-08-27 12:01 ` Jan Beulich
2015-08-27 12:01 ` Jan Beulich
2015-09-22 15:21 ` Daniel Kiper
2015-09-22 15:58 ` Jan Beulich
2015-09-22 15:58 ` Jan Beulich
2015-07-20 14:29 ` [PATCH v2 21/23] x86/boot: implement early command line parser in C Daniel Kiper
2015-08-10 20:31 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-10 20:31 ` Konrad Rzeszutek Wilk
2015-08-11 14:43 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-11 14:43 ` Konrad Rzeszutek Wilk
2015-08-27 12:43 ` Jan Beulich
2015-09-22 17:03 ` Daniel Kiper
2015-09-23 7:25 ` Jan Beulich
2015-09-23 7:25 ` Jan Beulich
2015-09-22 17:03 ` Daniel Kiper
2015-08-27 12:43 ` Jan Beulich
2015-07-20 14:29 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 22/23] x86: make Xen early boot code relocatable Daniel Kiper
2015-08-11 16:48 ` Konrad Rzeszutek Wilk
2015-08-11 16:48 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-14 11:52 ` Daniel Kiper
2015-08-14 12:49 ` Jan Beulich
2015-08-14 12:49 ` [Xen-devel] " Jan Beulich
2015-08-14 13:59 ` Daniel Kiper
2015-08-14 13:59 ` [Xen-devel] " Daniel Kiper
2015-08-14 14:32 ` Jan Beulich
2015-08-14 14:37 ` Daniel Kiper
2015-08-14 15:12 ` Jan Beulich
2015-08-14 15:12 ` Jan Beulich
2015-08-14 14:37 ` Daniel Kiper
2015-08-14 14:32 ` Jan Beulich
2015-08-14 15:20 ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-08-14 15:20 ` Konrad Rzeszutek Wilk
2015-08-14 11:52 ` Daniel Kiper
2015-08-27 13:12 ` Jan Beulich
2015-08-27 15:10 ` Daniel Kiper
2015-08-27 15:29 ` Jan Beulich
2015-08-27 15:29 ` Jan Beulich
2015-08-27 17:56 ` Ben Hildred
2015-08-28 8:22 ` Jan Beulich
2015-08-28 8:22 ` [Xen-devel] " Jan Beulich
2015-08-28 13:42 ` Konrad Rzeszutek Wilk
2015-08-28 14:16 ` Jan Beulich
2015-08-28 14:16 ` Jan Beulich
2015-08-31 19:49 ` Daniel Kiper
2015-08-31 19:49 ` [Xen-devel] " Daniel Kiper
2015-09-01 6:59 ` Jan Beulich
2015-09-01 6:59 ` [Xen-devel] " Jan Beulich
2015-08-28 13:42 ` Konrad Rzeszutek Wilk
2015-08-27 17:56 ` Ben Hildred
2015-08-27 18:04 ` Andrew Cooper
2015-08-28 6:54 ` Jan Beulich
2015-08-28 6:54 ` Jan Beulich
2015-08-28 11:59 ` Andrew Cooper
2015-08-28 11:59 ` Andrew Cooper
2015-08-27 18:04 ` Andrew Cooper
2015-08-28 14:24 ` Jan Beulich
2015-08-28 14:24 ` [Xen-devel] " Jan Beulich
2015-08-27 15:10 ` Daniel Kiper
2015-08-27 13:12 ` Jan Beulich
2015-07-20 14:29 ` Daniel Kiper
2015-07-20 14:29 ` [PATCH v2 23/23] x86: add multiboot2 protocol support for relocatable images Daniel Kiper
2015-08-11 16:56 ` Konrad Rzeszutek Wilk
2015-08-14 11:57 ` Daniel Kiper
2015-08-14 11:57 ` Daniel Kiper
2015-08-14 13:43 ` Konrad Rzeszutek Wilk
2015-08-14 13:43 ` Konrad Rzeszutek Wilk
2015-08-11 16:56 ` Konrad Rzeszutek Wilk
2015-07-21 9:39 ` [PATCH v2 00/23] x86: multiboot2 protocol support Jan Beulich
2015-07-21 9:39 ` Jan Beulich
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=20150722133136.GL3479@olila.local.net-space.pl \
--to=daniel.kiper@oracle.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.