grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: objcopy fix (for x86_64)


From: Christian Franke
Subject: Re: objcopy fix (for x86_64)
Date: Tue, 27 Nov 2007 21:40:55 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4

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 via email to

[Prev in Thread] Current Thread [Next in Thread]