On 2010-01-17 09:21, Danny Backx wrote: > I'd still like the answer to that first question, but after bypassing > these issues, I did see evidence of a problem I need to look into. See > the ld crash below. > > arm-mingw32ce-gcc -shared -Wl,--output-def,libswscale/swscale-0.def > -Wl,--out-implib,libswscale/libswscale.dll.a > -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base > -Wl,--version-script,libswscale/libswscale.ver > -L"/home/danny/src/ffmpeg/ffmpeg"/libavcodec > -L"/home/danny/src/ffmpeg/ffmpeg"/libavdevice > -L"/home/danny/src/ffmpeg/ffmpeg"/libavfilter > -L"/home/danny/src/ffmpeg/ffmpeg"/libavformat > -L"/home/danny/src/ffmpeg/ffmpeg"/libavutil > -L"/home/danny/src/ffmpeg/ffmpeg"/libpostproc > -L"/home/danny/src/ffmpeg/ffmpeg"/libswscale -Wl,--enable-auto-import > -Wl,--warn-common -Wl,--as-needed > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libpostproc > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libswscale > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavfilter > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavdevice > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavformat > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavcodec > -Wl,-rpath-link,"/home/danny/src/ffmpeg/ffmpeg"/libavutil -Wl,-Bsymbolic > -o libswscale/swscale-0.dll libswscale/options.o libswscale/rgb2rgb.o > libswscale/swscale.o libswscale/yuv2rgb.o -lavutil -lm > collect2: ld terminated with signal 11 [Segmentation fault], core dumped > /opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/ld: > nmimp000000.o: reloc against a non-existant symbol index: 456 > gmake: *** [libswscale/swscale-0.dll] Error 1 > gmake: Target `all' not remade because of errors. > > pavilion: {2999} gdb arm-mingw32ce-ld core.3365 > GNU gdb 6.8-6mdv2009.1 (Mandriva Linux release 2009.1) > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "i586-mandriva-linux-gnu"... > > warning: core file may not match specified executable file. > > warning: Can't read pathname for load map: Input/output error. > Reading symbols from /lib/libz.so.1...done. > Loaded symbols for /lib/libz.so.1 > Reading symbols from /lib/i686/libc.so.6...done. > Loaded symbols for /lib/i686/libc.so.6 > Reading symbols from /lib/ld-linux.so.2...done. > Loaded symbols for /lib/ld-linux.so.2 > Core was generated by > `/opt/mingw32ce/lib/gcc/arm-mingw32ce/4.4.0/../../../../arm-mingw32ce/bin/ld > --s'. > Program terminated with signal 11, Segmentation fault. > [New process 3365] > #0 0x400baa6a in strcmp () from /lib/i686/libc.so.6 > Missing debug package(s), you should install: > glibc-debug-2.9-0.20081113.5mnb2.i586 zlib-debug-1.2.3-13mdv2009.1.i586 > (gdb) where > #0 0x400baa6a in strcmp () from /lib/i686/libc.so.6 > #1 0x080676e9 in pe_walk_relocs_of_symbol (info=0x80db5a0, > name=0x815ec2b "av_pix_fmt_descriptors", cb=0x8064c60 > <make_import_fixup>) > > at > /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/pe-dll.c:1261 > #2 0x08064147 in pe_find_data_imports () at earm_wince_pe.c:1027 > #3 0x080642d7 in gld_arm_wince_pe_after_open () at earm_wince_pe.c:1124 > #4 0x08058b68 in lang_process () > > at > /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldlang.c:6293 > #5 0x0805cbf8 in main (argc=Cannot access memory at address 0x0 > ) > > at > /home/danny/src/cegcc/svn.sf.net/cegcc/trunk/cegcc/src/binutils/ld/ldmain.c:455 > >
The callstack I get is similar but not quite the same: (gdb) bt #0 0x00000000004442bb in coff_write_relocs (abfd=0x196ff20) at /home/ext/temp/cegcc/src/binutils/bfd/coffcode.h:2651 #1 coff_write_object_contents (abfd=0x196ff20) at /home/ext/temp/cegcc/src/binutils/bfd/coffcode.h:4131 #2 0x000000000042fb57 in bfd_make_readable (abfd=0x196ff20) at /home/ext/temp/cegcc/src/binutils/bfd/opncls.c:865 #3 0x0000000000424510 in make_singleton_name_imp (rel=0x1db62a0, s=<value optimized out>, addend=0) at /home/ext/temp/cegcc/src/binutils/ld/pe-dll.c:2253 #4 pe_create_import_fixup (rel=0x1db62a0, s=<value optimized out>, addend=0) at /home/ext/temp/cegcc/src/binutils/ld/pe-dll.c:2570 #5 0x000000000041dda2 in make_import_fixup (rel=0x1db62a0, s=0x19810c0) at earm_wince_pe.c:957 #6 0x00000000004203e7 in pe_walk_relocs_of_symbol (info=<value optimized out>, name=0x1981ea0 "av_pix_fmt_descriptors", cb=0x41dd20 <make_import_fixup>) at /home/ext/temp/cegcc/src/binutils/ld/pe-dll.c:1262 #7 0x000000000041d1eb in pe_find_data_imports () at earm_wince_pe.c:1027 #8 0x000000000041d3ba in gld_arm_wince_pe_after_open () at earm_wince_pe.c:1124 #9 0x0000000000410e48 in lang_process () at /home/ext/temp/cegcc/src/binutils/ld/ldlang.c:6293 #10 0x0000000000415907 in main (argc=83, argv=0x7fff39dc8b58) at /home/ext/temp/cegcc/src/binutils/ld/ldmain.c:455 (gdb) frame 0 #0 0x00000000004442bb in coff_write_relocs (abfd=0x196ff20) at /home/ext/temp/cegcc/src/binutils/bfd/coffcode.h:2651 2651 if (q->sym_ptr_ptr[0]->the_bfd != abfd) (gdb) p q->sym_ptr_ptr[0] $5 = (struct bfd_symbol *) 0x0 This deference is what's causing my SIGSEGV and looking at your callstack I see that your frame #1 matches my frame #6 so I guess the issues are related. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel