https://sourceware.org/bugzilla/show_bug.cgi?id=23258

--- Comment #7 from Lan <lpham54321 at gmail dot com> ---
It's the loader that trapped, but it was clang6 that was generating the object
file.

Can you try just invoking the loader directly against the static archive
libSTdb2gse.a to see if you can repro the trap?

/usr/bin/ld --hash-style=gnu --no-add-needed --eh-frame-hdr -m elf_x86_64
-shared -o db2gse
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtbeginS.o -L.
-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5
-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64
-L/usr/local/bin/../lib64 -L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../.. -L/usr/local/bin/../lib
-L/lib -L/usr/lib -soname db2gse --whole-archive libSTdb2gse.a
--no-whole-archive --enable-new-dtags --enable-new-dtags -lpthread -lm -lstdc++
-lm -lgcc_s -lc -lgcc_s /usr/lib/gcc/x86_64-redhat-linux/4.8.5/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/crtn.o

It's likely that clang 6 generated something that is incompatible with the
loader.

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