readelf string from .text code

example

 cat  hello.c
#include <stdio.h>
int main()
{
        printf("Hello world  \n");
        return 1 ;
}
 

$ readelf   -p .rodata        hello-x86

String dump of section '.rodata':
  [    10]  Hello world
 

Example with toolchaine

 /usr/local/toolchain/bin/arm-linux-gnueabihf-readelf    -p .rodata        libXXXXX.so     |grep   VRIPTVClient
  [   8c0]  VRIPTVClient_4.2.3.6_CI_vip5305_PROD_7.0.0

猜你喜欢

转载自blog.csdn.net/hushui/article/details/108215393
今日推荐