Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you tell if an ELF Binary was Built with BINDNOW?

Tags:

c

gcc

Is there an easy way to tell if an ELF binary was built with lazy binding disabled (-Wl,-z,now)?

like image 409
Whome Avatar asked Oct 26 '25 10:10

Whome


1 Answers

Found it, running this command tells you if BIND_NOW is used:

readelf -a /bin/login | grep BIND 

0x000000000000001e (FLAGS) BIND_NOW

like image 61
Whome Avatar answered Oct 28 '25 22:10

Whome



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!