grub-devel
[Top][All Lists]
Advanced

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

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


From: Bean
Subject: Re: [PATCH] Fix for linker build ID in Fedora 8
Date: Fri, 14 Dec 2007 14:10:02 +0800

Hi,

In fact, i would prefer to use linker script to solve this problem.
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.

To use the linker script:

ld -T my_script ...

I use this method to solve a problem in the cygwin ld. Its default
linker script create __CTOR_LIST__ and __DTOR_LIST__ variable at the
end of the text section, so it can't get the length right. After using
the new linker script, I'm able to create the exact content that I
want.

-- 
Bean




reply via email to

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