Skip to content

att: emit indirect-branch '*' for all memory operand forms#622

Merged
mappzor merged 2 commits into
zyantific:masterfrom
dxbjavid:att-indirect-branch-star
May 30, 2026
Merged

att: emit indirect-branch '*' for all memory operand forms#622
mappzor merged 2 commits into
zyantific:masterfrom
dxbjavid:att-indirect-branch-star

Conversation

@dxbjavid

Copy link
Copy Markdown
Contributor

AT&T flags indirect branches with a leading *, but it was only emitted on the
absolute-address sub-path, so register-base and rip-relative memory targets lost it:

$ ZydisInfo -64 ff15efbeadde
RELATIVE: call -0x21524111(%rip)   (want: call *-0x21524111(%rip))

Moving the marker into ZydisFormatterATTFormatOperandMEM fires it for every
branch-type memory operand regardless of how the address is rendered, matching gas/objdump.

Comment thread src/FormatterATT.c
@mappzor mappzor self-assigned this May 29, 2026
Comment thread tests/cases/default_053.in Outdated
@mappzor mappzor merged commit 4a586d6 into zyantific:master May 30, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants