This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Warning about zero-sized dynamic symbols
- From: Ian Lance Taylor <iant at google dot com>
- To: amodra at gmail dot com
- Cc: binutils at sourceware dot org
- Date: Fri, 09 Mar 2012 07:05:07 -0800
- Subject: Warning about zero-sized dynamic symbols
Alan, back in http://sourceware.org/ml/binutils/2005-08/msg00279.html
you added an error to GNU ld about dynamic variables that have a zero
size. The Go language permits global variables to have a zero size, and
that is even useful as a way of aggregating methods (e.g., in the
encoding/binary package in Go's standard library the variables BigEndian
and LittleEndian have a zero size). I've worked around the problem in
the gccgo compiler, but thinking about it I don't think the error is
appropriate.
Ian