grub-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Use linker script to remove unnecessary sections


From: Pavel Roskin
Subject: Re: [PATCH] Use linker script to remove unnecessary sections
Date: Sun, 16 Dec 2007 11:29:31 -0500
User-agent: Internet Messaging Program (IMP) H3 (4.1.4)

Quoting Robert Millan <address@hidden>:

On Fri, Dec 14, 2007 at 08:11:36PM +0800, Bean wrote:
Hi,

This patch use customized linker script to build *.img and *.mod
files, it should remove unnecessary sections created by the compiler.


2007-12-14  Bean  <address@hidden>

        * conf/i386-pc.rmk (COMMON_LDFLAGS): Use ldscript to link.

        * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Test ldscript.

        * configure.ac : Remove the '--build-id=none' flag.

This probably breaks other targets than i386-pc.  linuxbios and ieee1275
both use ELF.

But they don't use objcopy, they use strip. The goal is to switch i386-pc from the buggy and simple objcopy to more powerful and flexible ld. The same could be done to replace strip for other platforms while keeping ELF format for the output.

I agree that we should avoid naming highly target-specific linker scripts in a generic way. "i386-pc.ld" might be a better name. The linker script for modules perhaps could be generic, but this is for *.img files.

--
Regards,
Pavel Roskin




reply via email to

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