Quoting Bean <[EMAIL PROTECTED]>:
Hi,
In fact, i would prefer to use linker script to solve this problem.
OK, one approach would be to have an equivalent to "--build-id=none"
that would work with all versions of ld. That would be a nice
simplification, but it would still be working around objcopy bugs
before objcopy.
Another, more radical approach, would be to make ld work as objcopy
and output the binary, thus avoiding the stage with *.exec files.
We would depend on the fact that if objcopy can output in the binary
format, ld can do it as well. I think it's a safe assumption.
We could have separate ld scripts for different targets and different
outputs, such as *.mod and *.img files.
Linker script direct the link process, you can combine the sections in
any way you want. For example, the following linker script:
SECTIONS
{
.=0x8000
.text :
{
*(.text)
}
}
should only copy .text section to the output expectable.
We would need a script to remove a section (.note.gnu.build-id) or
maybe all sections with names starting with ".note" and a command to
set output format to binary (if possible, it can be done on the
command line too).
--
Regards,
Pavel Roskin
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel