Re: [PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ and __global_pointer$ on riscv

2018-05-15 Thread Andreas Schwab
On Mai 15 2018, Mark Wielaard wrote: > Is there an ELF abi document for riscv that describes these special > symbols? There is , but it doesn't mention the symbols. I have extracted that out of the binutils sources. Andreas

Re: [PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ and __global_pointer$ on riscv

2018-05-15 Thread Mark Wielaard
On Tue, 2018-05-15 at 13:47 +0200, Andreas Schwab wrote: > + > + * riscv_init.c (riscv_init): Hook check_special_symbol. > + * riscv_symbol.c (riscv_check_special_symbol): New function. Looks good. Pushed. I assume this solves some of the self-tests in make check on riscv. Is there an EL

[PATCH] backends: add checks for _GLOBAL_OFFSET_TABLE_ and __global_pointer$ on riscv

2018-05-15 Thread Andreas Schwab
Signed-off-by: Andreas Schwab --- backends/ChangeLog | 5 + backends/riscv_init.c | 1 + backends/riscv_symbol.c | 32 3 files changed, 38 insertions(+) diff --git a/backends/ChangeLog b/backends/ChangeLog index 63bb7e444e..0dde0ff3f5 100644 --- a/ba