[opensuse-mingw] RFH: Strange mingw behaviour

Nick Clifton nickc@redhat.com
Fri Mar 11 10:50:00 GMT 2016


Hi Martin,

> ld still produces executables showing the same error.

> It looks like, ld is removing the .rdata + .rdata$zzz section:
> /tmp/binutils-gdb/inst/usr/local/bin/x86_64-w64-mingw32-ld: Removing unused section '.rdata' in file '/tmp/ccmBHoSC.o'
> /tmp/binutils-gdb/inst/usr/local/bin/x86_64-w64-mingw32-ld: Removing unused section '.rdata$zzz' in file '/tmp/ccmBHoSC.o'

Is this wrong ?  Ie why should these sections be retained ?  

Presumably the linker has not found any relocations that point into
these sections, so it deduces that they are not needed and discards
them.

Cheers
  Nick



More information about the Binutils mailing list