[K42-discussion] [PATCH] GCC3 and GCC4 symbol generation

David Edelsohn dje at watson.ibm.com
Sat Jan 13 07:06:12 EST 2007


> GCC3 and GCC4 have different symbol generation strategies for functions
> defined as extern 'C' inside C++. This provides simple macro that solves
> the problem of linking on both GCC3 and GCC4 with the same code. 

	This is not a GCC 3 vs GCC 4 difference.  This was a change after
GCC 4.0 to make the PPC64 Linux ABI more consistent with other ABIs.  The
absence of the "dot" symbols only occurs on systems with the appropriate
Binutils installed.

David




More information about the K42-discussion mailing list