[PATCH 1/5] gas: Add md_cons_worker

H.J. Lu hjl.tools@gmail.com
Tue Nov 12 16:19:00 GMT 2019


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



More information about the Binutils mailing list