--- Additional Comments From ldv at altlinux dot org 2006-03-13 23:44
---
Even more simple test causes ld to crash in BFD:
$ g++ -shared -Wl,--as-needed -Wl,--whole-archive `gcc
-print-file-name=libsupc++.a` -Wl,--no-whole-archive
collect2: ld terminated with signal 11 [Segmentation faul
The disassembly for call and jmp looks like this:
43a: 0e 94 7e 0e call0x1cfc <__divmodhi4>
This causes problems since the "" part is not correct assembler
syntax. It should read like this:
43a: 0e 94 7e 0e call0x1cfc ; <__divmodhi4>
The following patch so