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

Donour Sizemore donour at cs.unm.edu
Sat Jan 13 07:10:08 EST 2007


David Edelsohn wrote:
>> 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.

Really. Hm. There isn't more than that? I mean GCC4 doesn't generate the 
text segment symbol anymore.


Either way, this is not likely to change in the future is it? The git 
tree will need to support both a generic GCC4 build and the old build of 
the toolchain which has been floating around for a while.

donour



More information about the K42-discussion mailing list