From: Alex Wieser <alexander.wieser@student.tuwien.ac.at>
To: gcc-help@gcc.gnu.org
Subject: Plugin access machine code
Date: Thu, 12 Jan 2023 21:06:23 +0100 [thread overview]
Message-ID: <f084ca639fab3aa41745977e900dfe35@student.tuwien.ac.at> (raw)
Hello,
I am trying to implement a Control Flow Integrity scheme for a custom
RISCV processor and want to use a gcc plugin to get all of the control
flow info that I need.
Right now I have a plugin as a pass after the eh_ranges pass, that is
able to draw a control flow graph and emit new instructions.
1) Is it possible to access the final addresses for any instruction from
within the gcc plugin?
2) Is there a way to get the actual machine code instructions in the
plugin while still having access to the control flow information? (So
still access to the basic blocks and their preds/succs)
BR
Alex
reply other threads:[~2023-01-12 20:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f084ca639fab3aa41745977e900dfe35@student.tuwien.ac.at \
--to=alexander.wieser@student.tuwien.ac.at \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).