[PATCH] RX: Add rx-*-linux target

Jeff Law law@redhat.com
Mon Apr 29 21:57:00 GMT 2019


On 3/26/19 8:21 AM, Yoshinori Sato wrote:
> I ported linux kernel to Renesas RX.
> 
> rx-*-elf target output a binary different from the standard ELF.
> It has the same format as the Renesas compiler.
> 
> But the linux kernel requires the standard ELF format.
> I want to define a rx-*-linux target so that I can generate
> a standard ELF binary.I believe you have a copyright assignment on file for your H8 work.  Was
the assignment specific to the H8 or was it more general?


> diff --git a/gcc/config/rx/linux.h b/gcc/config/rx/linux.h
> new file mode 100644
> index 00000000000..69500a379f2
> --- /dev/null
> +++ b/gcc/config/rx/linux.h

> +
> +/* This is how to output an element of a case-vector that is relative.
> +   Note: The local label referenced by the "3b" below is emitted by
> +   the tablejump insn.  */
> +
> +#undef ASM_OUTPUT_ADDR_DIFF_ELT
> +#define ASM_OUTPUT_ADDR_DIFF_ELT(FILE, BODY, VALUE, REL) \
> +  fprintf (FILE, "\t.long .L%d - 1b\n", VALUE)
Note the comment references "3b", but the output is "1b".

I don't see anything in here significantly concerning.  We just need to
verify your copyright assignment status.

Also, do you have write access to the repo?

Jeff



More information about the Gcc-patches mailing list