OK with one minor comment: > diff --git a/gcc/config/riscv/linux.h b/gcc/config/riscv/linux.h > index 9060c940a44..c1cfa9bf28a 100644 > --- a/gcc/config/riscv/linux.h > +++ b/gcc/config/riscv/linux.h > @@ -61,6 +61,8 @@ along with GCC; see the file COPYING3. If not see > -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \ > %{static:-static} %{static-pie:-static -pie --no-dynamic-linker -z > text}}" > > +#define TARGET_ASM_FILE_END riscv_file_end_indicate_exec_stack
Drop this and update the definition within riscv.cc.