Quoting Robert Millan <[EMAIL PROTECTED]>:
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 <[EMAIL PROTECTED]>
* 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
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel