[Bug binutils/13360] --keep-only-debug keeps non-debug sections.

2011-10-30 Thread pluto at agmk dot net
http://sourceware.org/bugzilla/show_bug.cgi?id=13360

--- Comment #4 from Pawel Sikora  2011-10-30 08:25:50 
UTC ---
(In reply to comment #2)
> The only non-debug section in main.debug are the two note sections and the
> comment section.

btw, the main.debug constains few sections (with content removed by objcopy)
with the same file-offset value but with section-size != 0. is it correct?

-- 
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/13362] New: internal error in value_from_output_section, at ../../gold/reloc.cc:1549 on armel

2011-10-30 Thread jrnieder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13362

 Bug #: 13362
   Summary: internal error in value_from_output_section, at
../../gold/reloc.cc:1549 on armel
   Product: binutils
   Version: 2.23 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: jrnie...@gmail.com
CC: ccout...@google.com, dougk...@google.com
Classification: Unclassified


Created attachment 6042
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6042
kernel module generated with systemtap 1.6-1

Hi,

Timo Lindfors found that running "ld.gold -r -o typequery_kmod_8.ko
typequery_kmod_8.o" with this object file on his openmoko and on his marvell
development board (which are ARMv4 and v5, respectively) produces

 ld.gold: internal error in value_from_output_section, at
../../gold/reloc.cc:1549

Just like PR12771, it's reproducible with real hardware but not on qemu
(since qemu doesn't emulate misaligned accesses with a trap or rotation).
Timo checked that the testcase from PR12771 still isn't causing trouble,
so this is a distinct bug.

Tests so far have been with version 2.21.90.20111025-1 from Debian sid.

After running "echo 5 >/proc/cpu/alignment", it dies with SIGBUS instead.
So we can get a backtrace:

 #0  rel<32> at gold/i386.cc:3632
 #1  rel32 at gold/reloc.h:559
 #2  gold::relocate_for_relocatable<32, false, 9> at gold/target-reloc.h:784
 #3  gold::Sized_relobj_file<32, false>::do_relocate_sections at
gold/reloc.cc:1027
 #4  (anonymous namespace)::Arm_relobj::do_relocate_sections at
gold/arm.cc:6452
 #5  relocate_sections at gold/object.h:2337
 #6  gold::Sized_relobj_file<32, false>::do_relocate at gold/reloc.cc:670
 #7  relocate at gold/object.h:1074
 #8  gold::Relocate_task::run at gold/reloc.cc:239
 #9  gold::Workqueue::find_and_run_task at gold/workqueue.cc:319

Details, including a fuller backtrace, are at http://bugs.debian.org/647049

-- 
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/13362] internal error in value_from_output_section, at ../../gold/reloc.cc:1549 on armel

2011-10-30 Thread jrnieder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13362

Jonathan Nieder  changed:

   What|Removed |Added

 CC||timo.lindfors at iki dot fi

-- 
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/13362] internal error in value_from_output_section, at ../../gold/reloc.cc:1549 on armel

2011-10-30 Thread jrnieder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13362

Jonathan Nieder  changed:

   What|Removed |Added

Version|2.23 (HEAD) |2.22

-- 
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/12771] internal error in value_from_output_section, at ../../gold/reloc.cc:1508 on armel

2011-10-30 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12771

--- Comment #19 from Ian Lance Taylor  2011-10-31 04:39:31 
UTC ---
*** Bug 13362 has been marked as a duplicate of this bug. ***

-- 
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/13362] internal error in value_from_output_section, at ../../gold/reloc.cc:1549 on armel

2011-10-30 Thread ian at airs dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13362

Ian Lance Taylor  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE

--- Comment #1 from Ian Lance Taylor  2011-10-31 04:39:31 
UTC ---
I believe this is already fixed on mainline and in the upcoming 2.22 release.

*** This bug has been marked as a duplicate of bug 12771 ***

-- 
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/13362] internal error in value_from_output_section, at ../../gold/reloc.cc:1549 on armel

2011-10-30 Thread jrnieder at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=13362

--- Comment #2 from Jonathan Nieder  2011-10-31 
06:30:55 UTC ---
ian at airs dot com wrote:

> I believe this is already fixed on mainline and in the upcoming 2.22 release.

To be clear, as mentioned above, Timo used the testcase from PR12771
to confirm that the fix to PR12771 is already applied.  Timo was
testing using a recent snapshot of binutils-2_22-branch.

This might or might not be fixed on mainline (I don't have the
hardware to check), but I don't see how it can be a duplicate of
PR12771.

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