]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/elfxx-riscv.h
Sync top level configure and makefiles
[thirdparty/binutils-gdb.git] / bfd / elfxx-riscv.h
index 5e1bdae9b2a0acba0172f6fdf083a5d0037f397d..ae4cbee7bc35d900b87cffee108644a13dd7a92c 100644 (file)
@@ -1,5 +1,5 @@
 /* RISC-V ELF specific backend routines.
-   Copyright (C) 2011-2023 Free Software Foundation, Inc.
+   Copyright (C) 2011-2024 Free Software Foundation, Inc.
 
    Contributed by Andrew Waterman (andrew@sifive.com).
    Based on MIPS target.
 
 #define RISCV_UNKNOWN_VERSION -1
 
+struct riscv_elf_params
+{
+  /* Whether to relax code sequences to GP-relative addressing.  */
+  bool relax_gp;
+  /* Whether to check if SUB_ULEB128 relocation has non-zero addend.  */
+  bool check_uleb128;
+};
+
+extern void riscv_elf32_set_options (struct bfd_link_info *,
+                                    struct riscv_elf_params *);
+extern void riscv_elf64_set_options (struct bfd_link_info *,
+                                    struct riscv_elf_params *);
+
 extern reloc_howto_type *
 riscv_reloc_name_lookup (bfd *, const char *);