bindp
bindp copied to clipboard
Binding specific IP and Port fro Linux Running Application
> ERROR: ld.so: object '/usr/lib/libindp.so' from LD_PRELOAD cannot be preloaded (cannot dynamically load position-independent executable): ignored. This is happening since Debian `bullseye`. Found this, same error message for a different...
I have been testing a similar lib called libttu, but it's old and a little buggy with IPv6 and Unix Sockets together. This is my suggestion.
``` gcc -nostartfiles -fpic -shared bindp.c -o libindp.so -ldl -D_GNU_SOURCE -D_FORTIFY_SOURCE=2 -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -fPIE -pie -Wl,-z,relro -Wl,-z,now /usr/bin/ld.bfd.real: warning: cannot find entry symbol _start; defaulting to...
Created with chatgpt. Please check if this makes sense.