This is motivated by the kernel using the predefine macros __riscv_cmodel_medlow & __riscv_cmodel_medany. Luc Van Oostenryck (2): options: add support for -fpic, -fPIC, -fpie & -fPIE options: add support for -mcmodel lib.c | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ lib.h | 15 ++++++++ 2 files changed, 125 insertions(+) -- 2.23.0