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