Quantcast
Viewing all articles
Browse latest Browse all 22137

Dynamic Symbol Table for PE compiled on Linux

I'm trying to get the content of the dynamic symbol table of compiled c file

#include<stdio.h>int main(){    printf("Hello, World!");    return 0;}

as portable executable (PE) on Linux with

i686-w64-mingw32-gcc hello_world.c -o hello32x86_64-w64-mingw32-gcc hello_world.c -o hello64

I'm using objdump:

objdump --dynamic-syms hello32

and get the output:

hello32:    file format pei-i386objdump: hello32: not a dynamic objectDYNAMIC SYMBOL TABLE:no symbols

I would expect to have functions like printf in the table. It works with gcc and ELF binaries.

Does anyone know how to compile the file correctly to have a dynamic symbol table with content?


Viewing all articles
Browse latest Browse all 22137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>