http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314
--- Comment #4 from gee <jojelino at gmail dot com> 2012-08-20 16:15:41 UTC --- (In reply to comment #3) > --export-all-symbols didn't work at all. > pick-reverting just one commit failed with conflict. > > > [966](sec 86)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x00000000 > Contents of section .rdata$_ZNSt14numeric_limitsIdE14min_exponent10E: > 0000 cdfeffff .... > > following is one of the symbol that linker failed to include in shared > library. > > __ZNSt14numeric_limitsIdE14min_exponent10E > .globl __ZNSt14numeric_limitsIdE14min_exponent10E > .section .rdata$_ZNSt14numeric_limitsIdE14min_exponent10E,"dr" > .align 4 > __ZNSt14numeric_limitsIdE14min_exponent10E: > .long -307 objdump -p src/.libs/cygstdc++-6.dll |grep "_ZNSt14numeric_limitsIdE14min_exponent10E" [1747] _ZNSt14numeric_limitsIdE14min_exponent10E 85 .rdata$_ZNSt14numeric_limitsIdE14min_exponent10E 00000004 00000000 00000000 00004644 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA above symbol was defined in dll, sorry for the noise. $ objdump -p src/.libs/cygstdc++-6.dll |grep "_ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E" 209 .rdata$_ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E 00000040 00000000 00000000 0000bd14 2**5 CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA, LINK_ONCE_SAME_SIZE (COMDAT __ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E 966) .globl __ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E .section .rdata$_ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E,"dr" .linkonce same_size .align 32 __ZTCSt13basic_fstreamIwSt11char_traitsIwEE0_St14basic_iostreamIwS1_E: .long 136 only difference for both section is RELOC, LINK_ONCE_SAME_SIZE. and some symbol in section with reloc failed to export symbols within.