This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 1/5] gas: Add md_cons_worker
On Tue, Dec 3, 2019 at 11:02 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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
>
Please ignore this one.
--
H.J.