I use buildroot to compile toolchains for a project of mine. Jumping to
GCC 10 I've run into this issue when static linking. I know I can throw
in '-zmuldefs' to force linkage, but it feels dirty.
/mmc/lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.1.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld:
/mmc/usr/lib/libc.a(libdl.os):(.data+0x1c): multiple definition of
`_dl_pagesize'; /mmc/usr/lib/libc.a(dl-support.os):(.bss+0x0): first
defined here
/mmc/lib/gcc/arm-buildroot-linux-uclibcgnueabi/10.1.0/../../../../arm-buildroot-linux-uclibcgnueabi/bin/ld:
/mmc/usr/lib/libc.a(libdl.os):(.data+0x18): multiple definition of
`_dl_tls_static_size'; /mmc/usr/lib/libc.a(libc-tls.os):(.bss+0x34c):
first defined here
collect2: error: ld returned 1 exit status
I wonder if it may be related to GCC 10 now defaulting to -fno-common.
https://gcc.gnu.org/gcc-10/porting_to.html
thanks,
Lance