Re: ASAN and $ORIGIN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 10 Mar 2017, Michael Thayer wrote:
> $ gcc test.c -o test -ldl -Wl,-rpath,'$ORIGIN'
> $ ./test
> True
> $ gcc test.c -o test -ldl -Wl,-rpath,'$ORIGIN' -fsanitize=address
> $ ./test

This seems unexpected, but you can investigate it a bit more on your end: add
'-v' to gcc command line to see how linker flags differ, run 'readelf -d' on
./test to check how rpath flag changes, or run 'LD_DEBUG=libs ./test' to see
how dynamic lookup decisions are made.

HTH.
Alexander



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux