All of lore.kernel.org
 help / color / mirror / Atom feed
* objcopy fix (for x86_64)
@ 2007-11-18 10:47 Robert Millan
  2007-11-18 12:35 ` Marco Gerards
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Millan @ 2007-11-18 10:47 UTC (permalink / raw)
  To: grub-devel

[-- 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-27 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.