How to detect at runtime whether symbols are stripped?

前端 未结 5 1030
忘掉有多难
忘掉有多难 2021-02-15 01:36

In my C++ program, how can I detect programmatically at runtime whether symbols have been stripped via the \'strip\' gnu development tool on Linux?

I\'d like a function

5条回答
  •  别跟我提以往
    2021-02-15 02:31

    I know the file command can tell the difference, so you could possibly look at its source to see what mechanism it uses.

提交回复
热议问题