[Top][All Lists]

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

Re: [PATCH] Fix for linker build ID in Fedora 8

From: Pavel Roskin
Subject: Re: [PATCH] Fix for linker build ID in Fedora 8
Date: Fri, 14 Dec 2007 01:47:07 -0500
User-agent: Internet Messaging Program (IMP) H3 (4.1.4)

Quoting Bean <address@hidden>:


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:

       .text :

should only copy .text section to the output expectable.

We would need a script to remove a section ( 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).

Pavel Roskin

reply via email to

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