This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH 1/5] gas: Add md_cons_worker
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 12 Nov 2019 08:19:01 -0800
- Subject: [PATCH 1/5] gas: Add md_cons_worker
- References: <20191112161905.10048-1-hjl.tools@gmail.com>
Add md_cons_worker to allow backend to track hard-coded opcodes in
instruction stream.
* read.c (cons_worker): Call md_cons_worker if it is define.
---
gas/read.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gas/read.c b/gas/read.c
index e53dd0232d..d1ce4eeb6c 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -3977,6 +3977,10 @@ cons_worker (int nbytes, /* 1=.byte, 2=.word, 4=.long. */
md_cons_align (nbytes);
#endif
+#ifdef md_cons_worker
+ md_cons_worker (nbytes);
+#endif
+
c = 0;
do
{
--
2.21.0