bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.pl


From: ian at airs dot com
Subject: [Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).
Date: Wed, 29 Jun 2011 14:59:26 +0000

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

Ian Lance Taylor <ian at airs dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> 2011-06-29 14:58:57 
UTC ---
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.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



reply via email to

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