mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
0fa0fc8539
"In 64-bit mode, the CS, DS, ES, and SS segment-override prefixes have no effect. These four prefixes are not treated as segment-override prefixes for the purposes of multiple-prefix rules. Instead, they are treated as null prefixes." (AMD APM v2). However, objdump disassembles instructions containing those ignored prefixes by still generating that segment override: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 00 00 00 00 Print those segment override prefixes as excessive ones: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1) 00 00 00 00 which is what they actually are - they have no effect and the decoding hardware ignores them. gas/ 2020-11-14 Borislav Petkov <bp@suse.de> * testsuite/gas/i386/x86-64-segovr.d: Adjust regexes. * testsuite/gas/i386/x86-64-nops.d: Likewise. * testsuite/gas/i386/x86-64-nops-1.d: Likewise. * testsuite/gas/i386/x86-64-nops-1-g64.d: Likewise. * testsuite/gas/i386/x86-64-nops-1-core2.d: Likewise. * testsuite/gas/i386/x86-64-nops-1-k8.d: Likewise. * testsuite/gas/i386/x86-64-nops-2.d: Likewise. * testsuite/gas/i386/x86-64-nops-3.d: Likewise. * testsuite/gas/i386/x86-64-nops-4.d: Likewise. * testsuite/gas/i386/x86-64-nops-4-core2.d: Likewise. * testsuite/gas/i386/x86-64-nops-4-k8.d: Likewise. * testsuite/gas/i386/x86-64-nops-5.d: Likewise. * testsuite/gas/i386/x86-64-nops-5-k8.d: Likewise. * testsuite/gas/i386/x86-64-nops-7.d: Likewise. * testsuite/gas/i386/x86-64-nop-1.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-1a.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-1b.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-1c.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-1d.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-1g.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-2c.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-6.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-7.d: Likewise. * testsuite/gas/i386/x86-64-align-branch-8.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-1-core2.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-1-k8.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-1.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-2.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-3.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-4-core2.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-4-k8.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-4.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-5-k8.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops-5.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-nops.d:: Likewise. ld/ 2020-11-14 Borislav Petkov <bp@suse.de> * testsuite/ld-x86-64/pe-x86-64-4.od: Adjust regexes. * testsuite/ld-x86-64/tlsld3.dd: Likewise. * testsuite/ld-x86-64/tlsld4.dd: Likewise. opcodes/ 2020-11-14 Borislav Petkov <bp@suse.de> * i386-dis.c (ckprefix): Do not assign active_seg_prefix in 64-bit addressing mode. (NOTRACK_Fixup): Test prefixes for PREFIX_DS, instead of active_seg_prefix.
68 lines
3.3 KiB
Plaintext
68 lines
3.3 KiB
Plaintext
|
|
.*: +file format .*
|
|
|
|
SYMBOL TABLE:
|
|
0+401000 l d .text\$mn 0000000000000000 .text\$mn
|
|
0+402000 l d .xdata 0000000000000000 .xdata
|
|
0+402008 l d .pdata 0000000000000000 .pdata
|
|
0+403018 l d .data 0000000000000000 .data
|
|
0+403038 l d .bss 0000000000000000 .bss
|
|
0+ l d .debug\$S 0000000000000000 .debug\$S
|
|
0+403038 g .bss 0000000000000000 c
|
|
0+401000 g .text\$mn 0000000000000000 begin
|
|
0+403038 g .bss 0000000000000000 __bss_start
|
|
0+403018 g .data 0000000000000000 Struct
|
|
0+401020 g .text\$mn 0000000000000000 opti_O1
|
|
0+403038 g .data 0000000000000000 _edata
|
|
0+403040 g .bss 0000000000000000 _end
|
|
0+401060 g .text\$mn 0000000000000000 opti_Od
|
|
|
|
|
|
|
|
Disassembly of section .text\$mn:
|
|
|
|
0+401000 <begin>:
|
|
+[a-f0-9]+: 48 83 ec 28 sub \$0x28,%rsp
|
|
+[a-f0-9]+: 48 c7 05 29 20 00 00 01 00 00 00 movq \$0x1,0x2029\(%rip\) # 403038 <__bss_start>
|
|
+[a-f0-9]+: e8 4c 00 00 00 call 401060 <opti_Od>
|
|
+[a-f0-9]+: e8 07 00 00 00 call 401020 <opti_O1>
|
|
+[a-f0-9]+: 48 83 c4 28 add \$0x28,%rsp
|
|
+[a-f0-9]+: c3 ret
|
|
+[a-f0-9]+: 66 90 xchg %ax,%ax
|
|
|
|
0+401020 <opti_O1>:
|
|
+[a-f0-9]+: b8 33 22 00 00 mov \$0x2233,%eax
|
|
+[a-f0-9]+: c6 05 ec 1f 00 00 12 movb \$0x12,0x1fec\(%rip\) # 403018 <Struct>
|
|
+[a-f0-9]+: 66 89 05 e7 1f 00 00 mov %ax,0x1fe7\(%rip\) # 40301a <Struct\+0x2>
|
|
+[a-f0-9]+: 48 b8 99 99 99 99 88 88 88 88 movabs \$0x8888888899999999,%rax
|
|
+[a-f0-9]+: 48 89 05 dc 1f 00 00 mov %rax,0x1fdc\(%rip\) # 403020 <Struct\+0x8>
|
|
+[a-f0-9]+: 83 c8 ff or \$0xffffffff,%eax
|
|
+[a-f0-9]+: c7 05 cb 1f 00 00 55 55 44 44 movl \$0x44445555,0x1fcb\(%rip\) # 40301c <Struct\+0x4>
|
|
+[a-f0-9]+: c3 ret
|
|
+[a-f0-9]+: 66 2e 0f 1f 84 00 00 00 00 00 cs nopw 0x0\(%rax,%rax,1\)
|
|
+[a-f0-9]+: 0f 1f 40 00 nopl 0x0\(%rax\)
|
|
|
|
0+401060 <opti_Od>:
|
|
+[a-f0-9]+: 48 89 4c 24 08 mov %rcx,0x8\(%rsp\)
|
|
+[a-f0-9]+: b8 10 00 00 00 mov \$0x10,%eax
|
|
+[a-f0-9]+: 48 6b c0 00 imul \$0x0,%rax,%rax
|
|
+[a-f0-9]+: 48 8d 0d a3 1f 00 00 lea 0x1fa3\(%rip\),%rcx # 403018 <Struct>
|
|
+[a-f0-9]+: c6 04 01 11 movb \$0x11,\(%rcx,%rax,1\)
|
|
+[a-f0-9]+: b8 10 00 00 00 mov \$0x10,%eax
|
|
+[a-f0-9]+: 48 6b c0 00 imul \$0x0,%rax,%rax
|
|
+[a-f0-9]+: 48 8d 0d 8f 1f 00 00 lea 0x1f8f\(%rip\),%rcx # 403018 <Struct>
|
|
+[a-f0-9]+: ba 22 22 00 00 mov \$0x2222,%edx
|
|
+[a-f0-9]+: 66 89 54 01 02 mov %dx,0x2\(%rcx,%rax,1\)
|
|
+[a-f0-9]+: b8 10 00 00 00 mov \$0x10,%eax
|
|
+[a-f0-9]+: 48 6b c0 00 imul \$0x0,%rax,%rax
|
|
+[a-f0-9]+: 48 8d 0d 75 1f 00 00 lea 0x1f75\(%rip\),%rcx # 403018 <Struct>
|
|
+[a-f0-9]+: c7 44 01 04 44 44 44 44 movl \$0x44444444,0x4\(%rcx,%rax,1\)
|
|
+[a-f0-9]+: b8 10 00 00 00 mov \$0x10,%eax
|
|
+[a-f0-9]+: 48 6b c0 00 imul \$0x0,%rax,%rax
|
|
+[a-f0-9]+: 48 8d 0d 5d 1f 00 00 lea 0x1f5d\(%rip\),%rcx # 403018 <Struct>
|
|
+[a-f0-9]+: 48 ba 88 88 88 88 88 88 88 88 movabs \$0x8888888888888888,%rdx
|
|
+[a-f0-9]+: 48 89 54 01 08 mov %rdx,0x8\(%rcx,%rax,1\)
|
|
+[a-f0-9]+: b8 ff ff ff ff mov \$0xffffffff,%eax
|
|
+[a-f0-9]+: c3 ret
|
|
#pass
|