[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2012-05-06 Thread mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

--- Comment #8 from Mark Wielaard  2012-05-06 09:52:18 
UTC ---
(In reply to comment #7)
> btw, the current elfutils (0.153) with these fixes reports an error:
> section [18] '.init_array': alloc flag set but section not in any loaded
> segment

I think that is fixed in git with the second commit mentioned in comment #5.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2012-05-06 Thread pluto at agmk dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

--- Comment #7 from Pawel Sikora  2012-05-06 09:15:22 
UTC ---
(In reply to comment #5)
> Just FYI, both these issues have been resolved in elfutils git recently:
> 
> commit 738c18312e0db36dce5e1cd2cddaf66eb8947f1a
> Author: Roland McGrath 
> Date:   Wed Mar 28 15:01:49 2012 -0700
> 
> elflint: Accept SHF_INFO_LINK for reloc sections.
> 
> commit 191d1f0b9163593eee8c4f5cbe3e95cabf6ae9a9
> Author: Mark Wielaard 
> Date:   Mon Apr 2 17:11:25 2012 +0200
> 
> elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.
> 
> readelf -d doesn't work if a SHT_NOBITS section is right before the actual
> .dynamic section at the same offset. elflint also fails on such binaries.
> So skip SHT_NOBITS sections at the same offset in [g]elf[32|64]_offscn().

btw, the current elfutils (0.153) with these fixes reports an error:
section [18] '.init_array': alloc flag set but section not in any loaded
segment

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2012-04-03 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

--- Comment #6 from Ian Lance Taylor  2012-04-03 12:40:01 
UTC ---
Thanks.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2012-04-03 Thread mjw at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

Mark Wielaard  changed:

   What|Removed |Added

 CC||mjw at redhat dot com

--- Comment #5 from Mark Wielaard  2012-04-03 09:37:42 
UTC ---
Just FYI, both these issues have been resolved in elfutils git recently:

commit 738c18312e0db36dce5e1cd2cddaf66eb8947f1a
Author: Roland McGrath 
Date:   Wed Mar 28 15:01:49 2012 -0700

elflint: Accept SHF_INFO_LINK for reloc sections.

commit 191d1f0b9163593eee8c4f5cbe3e95cabf6ae9a9
Author: Mark Wielaard 
Date:   Mon Apr 2 17:11:25 2012 +0200

elf32_offscn.c: Do not match SHT_NOBITS sections at OFFSET.

readelf -d doesn't work if a SHT_NOBITS section is right before the actual
.dynamic section at the same offset. elflint also fails on such binaries.
So skip SHT_NOBITS sections at the same offset in [g]elf[32|64]_offscn().

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2011-06-29 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution||INVALID

--- Comment #4 from Ian Lance Taylor  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   00032000  00032000
   0008   WAT   0 0 4
  [19] .dynamic  DYNAMIC  00032000  00032000
   0240  0010  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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2011-06-28 Thread pluto at agmk dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

--- Comment #3 from Pawel Sikora  2011-06-29 06:36:38 
UTC ---
Created attachment 5828
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5828
binary for .gnu.version_r issue.

section [ 8] '.gnu.version_r': entry 4 references unknown dependency
section [ 8] '.gnu.version_r': entry 3 references unknown dependency
section [ 8] '.gnu.version_r': entry 2 references unknown dependency
section [ 8] '.gnu.version_r': entry 1 references unknown dependency
section [ 8] '.gnu.version_r': entry 0 references unknown dependency
section [10] '.rela.plt' has wrong flags: expected none and possibly ALLOC, is
ALLOC|INFO_LINK
*** failure in ../libdw/libdw.so

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2011-06-28 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|NEW |WAITING

--- Comment #2 from Ian Lance Taylor  2011-06-28 20:27:39 
UTC ---
I can't recreate the problem with .gnu.version_r.  Can you attach a failing
binary?

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12945] gold linker breaks elfutils testuite (section '.rela.plt' has wrong flags: expected none and possibly ALLOC, is ALLOC|INFO_LINK).

2011-06-28 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12945

--- Comment #1 from Ian Lance Taylor  2011-06-28 20:20:00 
UTC ---
The ELF ABI specifies that the sh_info field of .rela.plt should be the section
index of the section to which the relocation applies.  It also specifies that
the SHF_INFO_LINK flag indicates that the sh_info field is a section index.  So
I think it is entirely correct for .rela.plt to have the SHF_INFO_LINK flag
set, and I think that complaining about that is a bug in the elfutils
testsuite.

-- 
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.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils