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

Re: [Xen-devel] [PATCH v2 02/23] x86/boot: copy only text section from *.lnk file to *.bin file



>>> On 22.07.15 at 15:31, <daniel.kiper@xxxxxxxxxx> wrote:
> On Wed, Jul 22, 2015 at 02:02:11AM -0600, Jan Beulich wrote:
>> >>> On 21.07.15 at 19:23, <daniel.kiper@xxxxxxxxxx> wrote:
>> > First of all ld generates .got.plt section and objcopy copy it to binary
>> > file.
>> > It is not needed because we do not link our stuff here with shared
>> > libraries.
>> > So, we can use -R objcopy option to remove it (if you do not like -j 
>> > .text).
>> > This way we could save 15 bytes (at least on my machines).
>>
>> So I checked and did find no .got.plt at all on a machine using
>> binutils 2.25 and an empty one on a machine using an older
>> version. So I'm curious what you're seeing present in that
>> table (without any of your patches applied).
> 
> Here it is:
> 
> [...]
> 
> Section Headers:
>   [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf 
> Al
>   [ 0]                   NULL            00000000 000000 000000 00     0   0  > 0
>   [ 1] .text             PROGBITS        00000000 000080 000705 00 WAX 0   0 
> 16
>   [ 2] .eh_frame         PROGBITS        00000708 000788 000104 00   A 0   0  
> 4
>   [ 3] .got.plt          PROGBITS        0000080c 00088c 00000c 04  WA 0   0  
> 4

But how do I know what is in there, i.e. which symbols are causing
this non-zero size? Because that's what we want to deal with instead
of arbitrarily dropping (or picking) sections.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.