All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christian Franke <Christian.Franke@t-online.de>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: objcopy fix (for x86_64)
Date: Tue, 27 Nov 2007 21:40:55 +0100	[thread overview]
Message-ID: <474C80D7.3030202@t-online.de> (raw)
In-Reply-To: <1196184056.2453.7.camel@dv>

Pavel Roskin wrote:
> On Tue, 2007-11-27 at 12:57 +0100, Robert Millan wrote:
>   
>>>> 	* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Pass `--only-section=.text'
>>>> 	to objcopy.
>>>>         
>>> Looks fine to me.
>>>       
>> Uhm actually, I suppose one would need this argument in two separate places
>> (the test, and the real thing), which I missed.
>>     
>
> It won't work "in the real thing".  There are more sections than
> just .text that need to be preserved.
>
> In any case, it will be in the yet to be written conf/x86_64-pc.mk
>
> We need to find the real reason behind grub_PROG_OBJCOPY_ABSOLUTE and
> relax the test to only find the original problem without impeding new
> ports.
>
>   

The reason for the failing objcopy test may be an unsupported or 
unsuitable "-N" linker option. The linker possibly adds constant bytes 
to some section.

Examining the builtin linker script ("ld -N --verbose") may be helpful 
to track down the problem.

If this script does not work, it can be replaced by a target specific 
version selected by configure. See "[PATCH] Build on Cygwin" for a 
working example.

Christian




      reply	other threads:[~2007-11-27 20:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-18 10:47 objcopy fix (for x86_64) Robert Millan
2007-11-18 12:35 ` Marco Gerards
2007-11-27 11:57   ` Robert Millan
2007-11-27 17:20     ` Pavel Roskin
2007-11-27 20:40       ` Christian Franke [this message]

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=474C80D7.3030202@t-online.de \
    --to=christian.franke@t-online.de \
    --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.