From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: objcopy fix (for x86_64)
Date: Sun, 18 Nov 2007 11:47:38 +0100 [thread overview]
Message-ID: <20071118104737.GA8445@thorin> (raw)
[-- Attachment #1: Type: text/plain, Size: 478 bytes --]
This prevents objcopy from copying sections other than .text during the
./configure absolute address test. On i386, our conftest only has .text
and .comment (which is skipped), but on x86_64 there's an additional
.eh_frame section which isn't skipped unless you tell it to.
Just one step further towards x86_64 grub ;-)
Comments?
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
[-- Attachment #2: objcopy.diff --]
[-- Type: text/x-diff, Size: 618 bytes --]
* aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Pass `--only-section=.text'
to objcopy.
diff -ur grub2.old/aclocal.m4 grub2/aclocal.m4
--- grub2.old/aclocal.m4 2007-02-03 12:36:13.000000000 +0100
+++ grub2/aclocal.m4 2007-11-18 11:34:06.000000000 +0100
@@ -61,7 +61,7 @@
else
AC_MSG_ERROR([${CC-cc} cannot link at address $link_addr])
fi
- if AC_TRY_COMMAND([${OBJCOPY-objcopy} -O binary conftest.exec conftest]); then :
+ if AC_TRY_COMMAND([${OBJCOPY-objcopy} --only-section=.text -O binary conftest.exec conftest]); then :
else
AC_MSG_ERROR([${OBJCOPY-objcopy} cannot create binary files])
fi
next reply other threads:[~2007-11-18 10:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-18 10:47 Robert Millan [this message]
2007-11-18 12:35 ` objcopy fix (for x86_64) Marco Gerards
2007-11-27 11:57 ` Robert Millan
2007-11-27 17:20 ` Pavel Roskin
2007-11-27 20:40 ` Christian Franke
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=20071118104737.GA8445@thorin \
--to=rmh@aybabtu.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.