X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fust-elf%2FREADME.md;h=0091876fe8ea3b0361f231daed8c9aff2955ea1e;hb=968f523d9ce251a0355e4bf7ff558f399024d744;hp=787af8c7125848443b37e2404da06589080ab93d;hpb=f5eb039d03be9b844c5cfde268008c60d79258d8;p=lttng-ust.git diff --git a/tests/ust-elf/README.md b/tests/ust-elf/README.md index 787af8c7..0091876f 100644 --- a/tests/ust-elf/README.md +++ b/tests/ust-elf/README.md @@ -40,3 +40,13 @@ is added to the executable. The commands used are as follow: $ objcopy --only-keep-debug main.elf main.elf.debug $ strip -g main.elf $ objcopy --add-gnu-debuglink=main.elf.debug main.elf + +There is also a series of tests used to check detection of +position-independent code (PIC). These tests use three pre-compiled +ELF files found under `data/pic/`, namely `hello.exec`, `hello.pie`, +and `hello.pic`. These can be re-generated using the files `hello.c` +and `libhello.c`, with the following commands: + + $ gcc hello.c -o hello.exec + $ gcc hello.c -fPIC -pie -o hello.pie + $ gcc -shared -o hello.pic -fPIC libhello.c