1 // SPDX-License-Identifier: GPL-2.0 << 2 #include <bfd.h> 1 #include <bfd.h> 3 2 4 extern int printf(const char *format, ...); 3 extern int printf(const char *format, ...); 5 4 6 int main(void) 5 int main(void) 7 { 6 { 8 char symbol[4096] = "FieldName__9Class 7 char symbol[4096] = "FieldName__9ClassNameFd"; 9 char *tmp; 8 char *tmp; 10 9 11 tmp = bfd_demangle(0, symbol, 0); 10 tmp = bfd_demangle(0, symbol, 0); 12 11 13 printf("demangled symbol: {%s}\n", tmp 12 printf("demangled symbol: {%s}\n", tmp); 14 13 15 return 0; 14 return 0; 16 } 15 } 17 16
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.