All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lubomir Kundrak <lkundrak@redhat.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] Preserve build IDs
Date: Thu, 17 Apr 2008 13:51:51 +0200	[thread overview]
Message-ID: <1208433111.770.40.camel@localhost.localdomain> (raw)
In-Reply-To: <1208286266.23118.6.camel@dv>


On Tue, 2008-04-15 at 15:04 -0400, Pavel Roskin wrote:
> On Tue, 2008-04-15 at 15:35 +0200, Robert Millan wrote:
> > On Tue, Apr 15, 2008 at 12:41:50AM +0200, Lubomir Kundrak wrote:
> > > This will make Fedora packagers have good sleep. I think we discussed
> > > this already on the list. Rationale behind disabling build-ids
> > > completely was that it caused images to grow a lot. Correct solution is
> > > to disable it from images only and let it exists in elf files for
> > > debugging purposes.
> > > 
> > > 2008-04-15  Lubomir Kundrak  <lkundrak@redhat.com>
> > > 
> > > 	* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
> > > 	section into account, newer toolchains generate unique build ids
> > > 	* configure.ac: remove the test for --build-id=none acceptance,
> > > 	we want build ids to bre preserved
> > > 	* genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
> > > 	far from other sections don't cause the raw binary images grow
> > > 	size
> > 
> > Looks good to me.  Pavel will probably know better though.
> 
> Looks good to me too.  There is a bug in objcopy if it's used without
> stripping the build ID.  But if we are stripping it, there should be no
> problem with it.

Actually that turned to not being a bug, if I recall correctly. It was
just that in plain flat binary files there's really no way to express
emptiness other by padding with zeroes.

However this is irrelevant since we no longer include that in the plain
binary files. There's little use of it anyways, as it would not be
possible to look it up in the file, given it resides in own section in
ELF, and plain binaries really have no sections.

Thanks,
-- 
Lubomir Kundrak (Red Hat Security Response Team)




  reply	other threads:[~2008-04-17 12:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-14 22:41 [PATCH] Preserve build IDs Lubomir Kundrak
2008-04-15 13:35 ` Robert Millan
2008-04-15 19:04   ` Pavel Roskin
2008-04-17 11:51     ` Lubomir Kundrak [this message]
2008-04-17 19:14       ` Pavel Roskin
2008-04-17 14:14     ` Robert Millan

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=1208433111.770.40.camel@localhost.localdomain \
    --to=lkundrak@redhat.com \
    --cc=grub-devel@gnu.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.