GCC/Function alias

From Sidvind
Jump to: navigation, search

Under gcc you can create function aliases using the attribute alias.

 uint64_t htobe64(uint64_t val) __attribute__((weak, alias ("_int_htobe64")));

This will create an additional symbol to be emitted. For c++ the mangled name must be provided.