Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ld: error in (.eh_frame); no .eh_frame_hdr table will be create

I make a very simple program hello in C. When use ld in the exe file returns this

ld: error in hello(.eh_frame); no .eh_frame_hdr table will be created.

I don't define any LD_LIBRAY_PATH or paths in /etc/ld.so.conf I've tried the same with the ls and returns:

ld: error in /bin/ls(.eh_frame); no .eh_frame_hdr table will be created.
ld: warning: cannot find entry symbol _start; defaulting to 0000000000402920

What's happening? I'm using a Debian and my GCC version is (Debian 4.7.2-5).

like image 778
Jacobo Geada Avatar asked Dec 12 '22 10:12

Jacobo Geada


1 Answers

I believe the utility you meant to use was ldd (LDD), not ld.

ldd will show all the shared linked libraries your exe uses.. or, at least, were linked it at compile time.

like image 179
EkriirkE Avatar answered Jan 13 '23 19:01

EkriirkE