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

Reply via email to