All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] --build-id= none in newer ld versions PowerPC
@ 2008-12-01 16:51 Manoel Rebelo Abranches
  2008-12-01 17:01 ` Vesa Jääskeläinen
  0 siblings, 1 reply; 14+ messages in thread
From: Manoel Rebelo Abranches @ 2008-12-01 16:51 UTC (permalink / raw)
  To: The development of GRUB 2; +Cc: Carlos Roberto do Nascimento Costa

[-- Attachment #1: Type: text/plain, Size: 234 bytes --]

This patch add --build-id=none option to newer ld versions when linking
kernel.elf.
This prevents grub-mkelfimage to behave wrongly.

-- 
Best Regards,

Manoel Abranches <mrabran@linux.vnet.ibm.com>
IBM Linux Technology Center Brazil

[-- Attachment #2: build_id_ld.patch --]
[-- Type: text/x-patch, Size: 2265 bytes --]

Index: aclocal.m4
===================================================================
--- aclocal.m4	(revision 1933)
+++ aclocal.m4	(working copy)
@@ -113,6 +113,7 @@
 
 if test "x$grub_cv_prog_ld_build_id_none" = xyes; then
   MODULE_LDFLAGS="$MODULE_LDFLAGS -Wl,--build-id=none"
+  PPC_BUILD_ID_FLAG="-Wl,--build-id=none"
 fi
 ])
 
Index: conf/powerpc-ieee1275.rmk
===================================================================
--- conf/powerpc-ieee1275.rmk	(revision 1933)
+++ conf/powerpc-ieee1275.rmk	(working copy)
@@ -87,7 +87,7 @@
 kernel_elf_CFLAGS = $(COMMON_CFLAGS)
 kernel_elf_ASFLAGS = $(COMMON_ASFLAGS)
 kernel_elf_LDFLAGS = $(COMMON_LDFLAGS) -static-libgcc -lgcc \
-	-Wl,-N,-S,-Ttext,0x200000,-Bstatic
+	-Wl,-N,-S,-Ttext,0x200000,-Bstatic $(PPC_BUILD_ID_FLAG)
 
 # Scripts.
 sbin_SCRIPTS = grub-install
Index: configure.ac
===================================================================
--- configure.ac	(revision 1933)
+++ configure.ac	(working copy)
@@ -330,6 +330,7 @@
 AC_SUBST(TARGET_CPPFLAGS)
 AC_SUBST(TARGET_LDFLAGS)
 AC_SUBST(MODULE_LDFLAGS)
+AC_SUBST(PPC_BUILD_ID_FLAG)
 
 # Set them to their new values for the tests below.
 CC="$TARGET_CC"
Index: Makefile.in
===================================================================
--- Makefile.in	(revision 1933)
+++ Makefile.in	(working copy)
@@ -73,6 +73,7 @@
 TARGET_IMG_LDFLAGS = @TARGET_IMG_LDFLAGS@
 TARGET_OBJ2ELF = @TARGET_OBJ2ELF@
 MODULE_LDFLAGS = @MODULE_LDFLAGS@
+PPC_BUILD_ID_FLAG = @PPC_BUILD_ID_FLAG@
 EXEEXT = @EXEEXT@
 OBJCOPY = @OBJCOPY@
 STRIP = @STRIP@
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 1933)
+++ ChangeLog	(working copy)
@@ -1,3 +1,14 @@
+2008-12-01  Manoel R. Abranches <mrabran@linux.vnet.ibm.com>
+
+	Add option --build-id=none to ld when linking kernel.elf in powerpc
+	to prevent creating additional LOAD segments.
+	Patch made with help from Paulo R. Pinatti <paulo@linux.vnet.ibm.com>.
+	* aclocal.m4: add --build-id=none to new variable when acceptable by
+	ld.
+	* conf/powerpc-ieee1275.rmk: New variable.
+	* configure.ac: New variable. 
+	* Makefile.in: New variable.
+
 2008-11-29  Robert Millan  <rmh@aybabtu.com>
 
 	* disk/ata.c (grub_ata_pciinit): Handle errors rised by

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

end of thread, other threads:[~2009-04-01 16:11 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-01 16:51 [PATCH] --build-id= none in newer ld versions PowerPC Manoel Rebelo Abranches
2008-12-01 17:01 ` Vesa Jääskeläinen
2008-12-01 17:34   ` Manoel Rebelo Abranches
2008-12-02 17:14     ` Vesa Jääskeläinen
2008-12-02 18:34       ` Pavel Roskin
2008-12-02 19:16         ` Manoel Rebelo Abranches
2008-12-04 14:08         ` Manoel Rebelo Abranches
2008-12-11 11:51           ` Manoel Rebelo Abranches
2009-01-05  6:38           ` Jerone Young
2009-01-05  6:53             ` Pavel Roskin
2009-01-05  7:09               ` Jerone Young
2009-02-07 19:50                 ` Robert Millan
2009-02-08 17:09                   ` Gregg C Levine
2009-04-01 16:11                 ` Pavel Roskin

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.