[haiku-development] PPC Kernel function mangling. (trac# 4115)

Good afternoon!

I just wanted to check and see if anyone knew why these functions were
getting mangled by the build system:

alex@linux:~/develop/haiku/generated/objects/haiku/ppc/release/system/kernel$
readelf -s kernel_ppc  | grep "UND"
0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
211: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_and64PVx
1589: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_get64PVx
2252: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z17_user_atomic_or64PVxx
2543: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z27_user_atomic_test_and
2786: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_add64PVx
3634: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_set64PVx
0: 00000000     0 NOTYPE  LOCAL  DEFAULT  UND 
2042: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_and64PVx
3420: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_get64PVx
4083: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z17_user_atomic_or64PVxx
4374: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z27_user_atomic_test_and
4617: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_add64PVx
5465: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND _Z18_user_atomic_set64PVx

These functions are all over the place:
http://haiku.it.su.se:8180/source/xref/src/system/libroot/os/arch/ppc/atomic.S
(should be defining _user_atomic?)
http://haiku.it.su.se:8180/source/xref/src/system/libroot/os/atomic.c
(should be _user_atomic calling _kern_atomic?)
http://haiku.it.su.se:8180/source/xref/src/system/kernel/arch/ppc/arch_atomic.c
(should be defining _kern_atomic?)

-- 
Thanks!
Alexander von Gluck
http://unixzen.com
PGP: F079C049

Other related posts: