GNU Binutils with patches for OS216
Revision | 97122a4cffdf7d9adfdef451498e92d4e46b5783 (tree) |
---|---|
Zeit | 2013-11-21 21:53:05 |
Autor | H.J. Lu <hjl.tools@gmai...> |
Commiter | H.J. Lu |
Add bnd-branch-1 test
* ld-x86-64/mpx.exp: Run bnd-branch-1.
* ld-x86-64/bnd-branch-1.d: New file.
* ld-x86-64/bnd-branch-1.s: Likewise.
@@ -1,3 +1,9 @@ | ||
1 | +2013-11-21 H.J. Lu <hongjiu.lu@intel.com> | |
2 | + | |
3 | + * ld-x86-64/mpx.exp: Run bnd-branch-1. | |
4 | + * ld-x86-64/bnd-branch-1.d: New file. | |
5 | + * ld-x86-64/bnd-branch-1.s: Likewise. | |
6 | + | |
1 | 7 | 2013-11-20 H.J. Lu <hongjiu.lu@intel.com> |
2 | 8 | |
3 | 9 | * ld-x86-64/mpx.exp (build_tests): Add libmpx2a.a, libmpx2b.a |
@@ -0,0 +1,19 @@ | ||
1 | +#as: --64 | |
2 | +#ld: -shared -melf_x86_64 | |
3 | +#objdump: -dw | |
4 | + | |
5 | +.*: +file format .* | |
6 | + | |
7 | + | |
8 | +#... | |
9 | +Disassembly of section .text: | |
10 | + | |
11 | +#... | |
12 | +[a-f0-9]+ <_start>: | |
13 | +[ ]*[a-f0-9]+: f2 e9 [a-f0-9]+ ff ff ff bnd jmpq [a-f0-9]+ <foo1@plt> | |
14 | +[ ]*[a-f0-9]+: e8 [a-f0-9]+ ff ff ff callq [a-f0-9]+ <foo2@plt> | |
15 | +[ ]*[a-f0-9]+: e9 [a-f0-9]+ ff ff ff jmpq [a-f0-9]+ <foo3@plt> | |
16 | +[ ]*[a-f0-9]+: e8 [a-f0-9]+ ff ff ff callq [a-f0-9]+ <foo4@plt> | |
17 | +[ ]*[a-f0-9]+: f2 e8 [a-f0-9]+ ff ff ff bnd callq [a-f0-9]+ <foo3@plt> | |
18 | +[ ]*[a-f0-9]+: e9 [a-f0-9]+ ff ff ff jmpq [a-f0-9]+ <foo4@plt> | |
19 | +#pass |
@@ -0,0 +1,9 @@ | ||
1 | + .text | |
2 | + .globl _start | |
3 | +_start: | |
4 | +bnd jmp foo1@plt | |
5 | + call foo2@plt | |
6 | + jmp foo3@plt | |
7 | + call foo4@plt | |
8 | +bnd call foo3@plt | |
9 | + jmp foo4@plt |
@@ -76,3 +76,5 @@ set run_tests { | ||
76 | 76 | } |
77 | 77 | |
78 | 78 | run_ld_link_exec_tests [] $run_tests |
79 | + | |
80 | +run_dump_test "bnd-branch-1" |