[PATCH -v2.1] x86: Ignore CS, DS, ES, and SS segment-override prefixes in 64-bit mode

H.J. Lu hjl.tools@gmail.com
Wed Nov 4 19:18:46 GMT 2020


On Wed, Nov 4, 2020 at 11:08 AM Borislav Petkov <bp@suse.de> wrote:
>
> On Mon, Nov 02, 2020 at 06:59:26AM -0800, H.J. Lu wrote:
> > Please mention what you changed in which functions in ChangeLog
> > entry.  OK with these changes.
>
> Ok, how's that:
>
> diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
> index a5f662fdaa5d..2700dc997683 100644
> --- a/opcodes/ChangeLog
> +++ b/opcodes/ChangeLog
> @@ -2,6 +2,8 @@
>
>         * opcodes/i386-dis.c: Ignore CS,DS,FS,ES segment override prefix in
>         64-bit mode.
> +       (ckprefix): Do not assign active_seg_prefix when 64-bit addressing mode.
> +       (NOTRACK_Fixup): Test prefixes for PREFIX_DS, instead of active_seg_prefix.
>
>

OK with opcodes Changelog entry.

            * opcodes/i386-dis.c (ckprefix): Do not assign
active_seg_prefix when 64-bit
               addressing mode.
               (NOTRACK_Fixup): Test prefixes for PREFIX_DS, instead
of active_seg_prefix.

Thanks.

-- 
H.J.


More information about the Binutils mailing list