Hi,

It seems that gold causes elflint to generate errors.

Ian Lance Taylor wrote:
>   Thanks for the test case.  The elflint program is getting confused when it
>   tries to find the .dynamic section.  The PT_DYNAMIC segment is at address
>   0x32000.  It happens that the .tbss section is at sddress 0x32000.  Since 
> the
>   .tbss section is SHT_NOBITS, it does not take up any address space.  The
>   .dynamic section then follows it, also at address 0x32000.  In the readelf 
> -S
>   output:
>
>     [18] .tbss             NOBITS           0000000000032000  00032000
>          0000000000000008  0000000000000000 WAT       0     0     4
>     [19] .dynamic          DYNAMIC          0000000000032000  00032000
>          0000000000000240  0000000000000010  WA       3     0     8
>
>   This is confusing elflint.  It is using gelf_offscn to return the section at
>   offset 0x32000.  That winds up being the .tbss section, not the .dynamic
>   section.  Based on that it decides that there are no DT_NEEDED entries, and
>   issues the .gnu.version_r warnings.
>
>   I don't see any gold problem here.

Please see http://sourceware.org/bugzilla/show_bug.cgi?id=12945



Kurt

_______________________________________________
elfutils-devel mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/elfutils-devel

Reply via email to