https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203
Julian Waters <tanksherman27 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tanksherman27 at gmail dot com
--- Comment #11 from Julian Waters <tanksherman27 at gmail dot com> ---
I'm unsure whether this issue can affect more than just memset and memcpy, but
I'm facing hundreds of errors that look strikingly similar to this, and from
what I've dug through in binutils and gcc source code, the explanation given
here seems to track as well, late references after the plugin has already
finalized everything and localized/inlined dependent symbols away causing
issues:
`__freedtoa' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-g__fmt.o):
defined in discarded section `.text' of lib64_libmingwex_a-dmisc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__d2b_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__d2b_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__i2b_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__pow5mult_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__mult_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__pow5mult_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__diff_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__cmp_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__cmp_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__d2b_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__diff_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__trailz_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__tinytens_D2A' referenced in section
`.rdata$.refptr.__tinytens_D2A[.refptr.__tinytens_D2A]' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__bigtens_D2A' referenced in section
`.rdata$.refptr.__bigtens_D2A[.refptr.__bigtens_D2A]' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__tens_D2A' referenced in section
`.rdata$.refptr.__tens_D2A[.refptr.__tens_D2A]' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-strtodg.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-sum.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-sum.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-sum.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__lshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__Bfree_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__rshift_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-gethex.o):
defined in discarded section `.text' of lib64_libmingwex_a-gmisc.o (symbol from
plugin)
`__Balloc_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-smisc.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__multadd_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-smisc.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__multadd_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-smisc.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__b2d_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-smisc.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
`__b2d_D2A' referenced in section `.text' of
C:/Users/vertig0/Downloads/Windows/gcc/lib/gcc/x86_64-w64-mingw32/17.0.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingwex.a(lib64_libmingwex_a-smisc.o):
defined in discarded section `.text' of lib64_libmingwex_a-misc.o (symbol from
plugin)
collect2.exe: error: ld returned 1 exit status
make[4]: *** [Makefile:1303: as-new.exe] Error 1
make[4]: Leaving directory
'/c/Users/vertig0/Downloads/Windows/build/binutils/gas'
make[3]: *** [Makefile:1681: all-recursive] Error 1
make[3]: Leaving directory
'/c/Users/vertig0/Downloads/Windows/build/binutils/gas'
make[2]: *** [Makefile:1030: all] Error 2
make[2]: Leaving directory
'/c/Users/vertig0/Downloads/Windows/build/binutils/gas'
make[1]: *** [Makefile:5555: all-gas] Error 2
make[1]: *** Waiting for unfinished jobs...
-Wl,--whole-archive <The problematic C runtime library> -Wl,--no-whole-archive
seems to fix the issue, which I theorize is because it forces the plugin to
claim everything up front rather than lazily, so no late references cause any
issues. I wonder if there is a way to address this properly in the code somehow
without relying on the workaround though.