This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Patch: minor som.c fix for --enable-targets=all
Alan> Backtrace? (Or send me the binary.) I'm wondering exactly how this
Alan> occurs, and if som_is_space() needs similar treatment.
It is appended. This is CVS HEAD from sometime earlier today.
>> >From bb0f0921237e93961daf096dacfec8c5154ca428 Mon Sep 17 00:00:00 2001
Alan> And also wondering if this is a really old patch, and whether it is
Alan> actually needed on current binutils..
No idea about that, I wrote the patch in the last month or so. I assume
it is some git thing. I reproduced the crash with CVS HEAD before
sending the patch.
I can send a SOM executable if you want one.
Tom
(gdb) r
Starting program: /home/tromey/gnu/baseline-gdb/build/binutils/objdump -h /tmp/arrayidx
Program received signal SIGSEGV, Segmentation fault.
0x00000000007ff14e in som_is_subspace (section=0x15f3b20)
at ../../src/bfd/som.c:2689
2689 if (som_section_data (section)->copy_data == NULL)
(gdb) bt
#0 0x00000000007ff14e in som_is_subspace (section=0x15f3b20)
at ../../src/bfd/som.c:2689
#1 setup_sections (current_offset=<optimized out>, file_hdr=0x7fffffffe050,
abfd=0x15f21c0) at ../../src/bfd/som.c:2347
#2 som_object_p (abfd=0x15f21c0) at ../../src/bfd/som.c:2513
#3 0x00000000004f6a65 in bfd_check_format_matches (abfd=0x15f21c0,
format=<optimized out>, matching=0x7fffffffe308)
at ../../src/bfd/format.c:215
#4 0x000000000040c192 in display_object_bfd (abfd=0x15f21c0)
at ../../src/binutils/objdump.c:3307
#5 display_any_bfd (file=0x15f21c0, level=0)
at ../../src/binutils/objdump.c:3383
#6 0x000000000040c728 in display_file (
filename=0x7fffffffe85a "/tmp/arrayidx", target=<optimized out>)
at ../../src/binutils/objdump.c:3404
#7 0x0000000000406ee7 in display_file (target=0x0,
filename=0x7fffffffe85a "/tmp/arrayidx")
at ../../src/binutils/objdump.c:3393
#8 main (argc=3, argv=0x7fffffffe4a8) at ../../src/binutils/objdump.c:3686