Skip to content

AT&T specific syntax should be avoided: int $0x03 → int3 #30

@aadampri

Description

@aadampri

Hi @scottt ,

in

__asm__ volatile("int $0x03");

there is an AT&T specific assembler instruction used, which will lead to failing GAS for compilers defaulting e.g. to Intel syntax.

The compiler agnostic solution would be simply to switch to "int3".

Best
Adam

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions