https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61577
--- Comment #179 from Peter Bisroev <peter.bisroev at groundlabs dot com> --- (In reply to dave.anglin from comment #178) > The configure test didn't find support for COMDAT groups even though aCC and > HP ld > support them. So, there's likely something incompatible with the default > support for COMDAT > groups. > > Could you look at configure test and see why it fails? Looking at configure in 4.9.4, there are two COMDAT related tests. First test "checking assembler for .nsubspa comdat" fails when it tries to assemble: ---------- .SPACE $TEXT$ .NSUBSPA $CODE$,COMDAT ---------- The errors are: ---------- conftest.s:2: Error: unknown pseudo-op: `.nsubspa' conftest.s:1: Error: .space specifies non-absolute value ---------- Looking through gas manual it looks like '.nsubspa' and that variation of '.space' are only supported for HPPA. The second test "checking assembler for COMDAT group support (GNU as)" passes when it tries to assemble: ---------- .section .text,"axG",@progbits,.foo,comdat ---------- However just below this check, configure looks for GNU linker, and if one not found, disables COMDAT group support even though the second test passed. However `--enable-comdat` configure flag seems to override this behavior. I will try to recompile 4.7.4 with it to see what happens. Thanks!