Lines Matching +full:r +full:- +full:xp

2 # Copyright (C) 2011-2013 Red Hat, Inc.
18 . $srcdir/test-subr.sh
25 # gcc -m32 -g -shared testfile52-32.c -o testfile52-32.so
26 # eu-strip -f testfile52-32.so.debug testfile52-32.so
27 # cp testfile52-32.so testfile52-32.prelink.so
28 # prelink -N testfile52-32.prelink.so
29 # cp testfile52-32.so testfile52-32.noshdrs.so
30 # prelink -r 0x42000000 testfile52-32.noshdrs.so
31 # eu-strip --remove-comment --strip-sections testfile52-32.noshdrs.so
33 testfiles testfile52-32.so testfile52-32.so.debug
34 testfiles testfile52-32.prelink.so testfile52-32.noshdrs.so
35 tempfiles testmaps52-32 testfile52-32.noshdrs.so.debug
36 ln -snf testfile52-32.so.debug testfile52-32.noshdrs.so.debug
38 cat > testmaps52-32 <<EOF
39 00111000-00112000 r-xp 00000000 fd:01 1 `pwd`/testfile52-32.so
40 00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile52-32.so
41 41000000-41001000 r-xp 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
42 41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile52-32.prelink.so
43 42000000-42001000 r-xp 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
44 42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile52-32.noshdrs.so
48 # because it didn't notice that prelink added a 0x20-byte offset from
50 testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps52-32 \
53 /home/jistone/src/elfutils/tests/testfile52-32.c:2
55 /home/jistone/src/elfutils/tests/testfile52-32.c:2
57 /home/jistone/src/elfutils/tests/testfile52-32.c:2
60 # Repeat testfile52 for -m64. The particular REL>RELA issue doesn't exist, but
62 testfiles testfile52-64.so testfile52-64.so.debug
63 testfiles testfile52-64.prelink.so testfile52-64.noshdrs.so
64 tempfiles testmaps52-64 testfile52-64.noshdrs.so.debug
65 ln -snf testfile52-64.so.debug testfile52-64.noshdrs.so.debug
67 cat > testmaps52-64 <<EOF
68 1000000000-1000001000 r-xp 00000000 fd:11 1 `pwd`/testfile52-64.so
69 1000001000-1000200000 ---p 00001000 fd:11 1 `pwd`/testfile52-64.so
70 1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile52-64.so
71 3000000000-3000001000 r-xp 00000000 fd:11 2 `pwd`/testfile52-64.prelink.so
72 3000001000-3000200000 ---p 00001000 fd:11 2 `pwd`/testfile52-64.prelink.so
73 3000200000-3000201000 rw-p 00000000 fd:11 2 `pwd`/testfile52-64.prelink.so
74 3800000000-3800001000 r-xp 00000000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
75 3800001000-3800200000 ---p 00001000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
76 3800200000-3800201000 rw-p 00000000 fd:11 3 `pwd`/testfile52-64.noshdrs.so
79 testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps52-64 \
82 /home/jistone/src/elfutils/tests/testfile52-64.c:2
84 /home/jistone/src/elfutils/tests/testfile52-64.c:2
86 /home/jistone/src/elfutils/tests/testfile52-64.c:2
94 # gcc -m32 -g testfile53-32.c -o testfile53-32
95 # eu-strip -f testfile53-32.debug testfile53-32
96 # cp testfile53-32 testfile53-32.prelink
97 # prelink -N testfile53-32.prelink
98 testfiles testfile53-32 testfile53-32.debug testfile53-32.prelink
100 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-32 0x8048394 0x8048395 <<\EOF
102 /home/jistone/src/elfutils/tests/testfile53-32.c:2
104 /home/jistone/src/elfutils/tests/testfile53-32.c:2
108 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-32.prelink 0x8048396 0x8048397 <…
110 /home/jistone/src/elfutils/tests/testfile53-32.c:2
112 /home/jistone/src/elfutils/tests/testfile53-32.c:2
115 # Repeat testfile53 in 64-bit, except use foo[0x800] to achieve the same
117 testfiles testfile53-64 testfile53-64.debug testfile53-64.prelink
119 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-64 0x400474 0x400475 <<\EOF
121 /home/jistone/src/elfutils/tests/testfile53-64.c:2
123 /home/jistone/src/elfutils/tests/testfile53-64.c:2
126 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile53-64.prelink 0x400476 0x400477 <<\…
128 /home/jistone/src/elfutils/tests/testfile53-64.c:2
130 /home/jistone/src/elfutils/tests/testfile53-64.c:2
139 # gcc -m32 -g -shared -nostartfiles testfile54-32.c -o testfile54-32.so
140 # eu-strip -f testfile54-32.so.debug testfile54-32.so
141 # cp testfile54-32.so testfile54-32.prelink.so
142 # prelink -N testfile54-32.prelink.so
143 # cp testfile54-32.so testfile54-32.noshdrs.so
144 # prelink -r 0x42000000 testfile54-32.noshdrs.so
145 # eu-strip --remove-comment --strip-sections testfile54-32.noshdrs.so
146 testfiles testfile54-32.so testfile54-32.so.debug
147 testfiles testfile54-32.prelink.so testfile54-32.noshdrs.so
148 tempfiles testmaps54-32
150 # Note we have no testfile54-32.noshdrs.so.debug link here, so
153 cat > testmaps54-32 <<EOF
154 00111000-00112000 r--p 00000000 fd:01 1 `pwd`/testfile54-32.so
155 00112000-00113000 rw-p 00000000 fd:01 1 `pwd`/testfile54-32.so
156 41000000-41001000 r--p 00000000 fd:01 2 `pwd`/testfile54-32.prelink.so
157 41001000-41002000 rw-p 00000000 fd:01 2 `pwd`/testfile54-32.prelink.so
158 42000000-42001000 r--p 00000000 fd:01 3 `pwd`/testfile54-32.noshdrs.so
159 42001000-42002000 rw-p 00000000 fd:01 3 `pwd`/testfile54-32.noshdrs.so
162 testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps54-32 \
176 # Repeat testfile64 in 64-bit
177 testfiles testfile54-64.so testfile54-64.so.debug
178 testfiles testfile54-64.prelink.so testfile54-64.noshdrs.so
179 tempfiles testmaps54-64
181 # Note we have no testfile54-64.noshdrs.so.debug link here, so
184 cat > testmaps54-64 <<EOF
185 1000000000-1000001000 r--p 00000000 fd:11 1 `pwd`/testfile54-64.so
186 1000001000-1000200000 ---p 00001000 fd:11 1 `pwd`/testfile54-64.so
187 1000200000-1000201000 rw-p 00000000 fd:11 1 `pwd`/testfile54-64.so
188 3000000000-3000001000 r--p 00000000 fd:11 2 `pwd`/testfile54-64.prelink.so
189 3000001000-3000200000 ---p 00001000 fd:11 2 `pwd`/testfile54-64.prelink.so
190 3000200000-3000201000 rw-p 00000000 fd:11 2 `pwd`/testfile54-64.prelink.so
191 3800000000-3800001000 r--p 00000000 fd:11 3 `pwd`/testfile54-64.noshdrs.so
192 3800001000-3800200000 ---p 00001000 fd:11 3 `pwd`/testfile54-64.noshdrs.so
193 3800200000-3800201000 rw-p 00000000 fd:11 3 `pwd`/testfile54-64.noshdrs.so
196 testrun_compare ${abs_top_builddir}/src/addr2line -S -M testmaps54-64 \
215 # gcc -m32 -g testfile55-32.c -o testfile55-32
216 # eu-strip -f testfile55-32.debug testfile55-32
217 # cp testfile55-32 testfile55-32.prelink
218 # prelink -N testfile55-32.prelink
219 testfiles testfile55-32 testfile55-32.debug testfile55-32.prelink
221 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-32 0x80483b4 0x80483b5 <<\EOF
223 /home/jistone/src/elfutils/tests/testfile55-32.c:2
225 /home/jistone/src/elfutils/tests/testfile55-32.c:2
230 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-32.prelink 0x80483b6 0x80483b7 <…
232 /home/jistone/src/elfutils/tests/testfile55-32.c:2
234 /home/jistone/src/elfutils/tests/testfile55-32.c:2
237 # Repeat testfile55 in 64-bit
238 testfiles testfile55-64 testfile55-64.debug testfile55-64.prelink
240 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-64 0x4004b4 0x4004b5 <<\EOF
242 /home/jistone/src/elfutils/tests/testfile55-64.c:2
244 /home/jistone/src/elfutils/tests/testfile55-64.c:2
247 testrun_compare ${abs_top_builddir}/src/addr2line -S -e testfile55-64.prelink 0x4004b6 0x4004b7 <<\…
249 /home/jistone/src/elfutils/tests/testfile55-64.c:2
251 /home/jistone/src/elfutils/tests/testfile55-64.c:2