X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-riscv.h;h=43d751ad0dd2af5e16e6fe48b535258a6d0cca6c;hb=13aa5ceb01cc94a0e617f397c0c5434fc22bb1e5;hp=a4f40e6284c2f14c858b9f5161d1a06056594acf;hpb=219d1afa89d0d53ca93a684cac341f16470f3ca0;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-riscv.h b/gas/config/tc-riscv.h index a4f40e6284..43d751ad0d 100644 --- a/gas/config/tc-riscv.h +++ b/gas/config/tc-riscv.h @@ -1,5 +1,5 @@ /* tc-riscv.h -- header file for tc-riscv.c. - Copyright (C) 2011-2018 Free Software Foundation, Inc. + Copyright (C) 2011-2020 Free Software Foundation, Inc. Contributed by Andrew Waterman (andrew@sifive.com). Based on MIPS target. @@ -38,10 +38,10 @@ struct expressionS; /* Symbols named FAKE_LABEL_NAME are emitted when generating DWARF, so make sure FAKE_LABEL_NAME is printable. It still must be distinct from any real label name. So, append a space, which other labels can't contain. */ -#define FAKE_LABEL_NAME ".L0 " +#define FAKE_LABEL_NAME RISCV_FAKE_LABEL_NAME /* Changing the special character in FAKE_LABEL_NAME requires changing FAKE_LABEL_CHAR too. */ -#define FAKE_LABEL_CHAR ' ' +#define FAKE_LABEL_CHAR RISCV_FAKE_LABEL_CHAR #define md_relax_frag(segment, fragp, stretch) \ riscv_relax_frag (segment, fragp, stretch) @@ -62,7 +62,7 @@ extern bfd_boolean riscv_frag_align_code (int); extern void riscv_handle_align (fragS *); #define HANDLE_ALIGN riscv_handle_align -#define MAX_MEM_FOR_RS_ALIGN_CODE 7 +#define MAX_MEM_FOR_RS_ALIGN_CODE (3 + 4) /* The ISA of the target may change based on command-line arguments. */ #define TARGET_FORMAT riscv_target_format() @@ -120,4 +120,10 @@ extern void riscv_elf_final_processing (void); /* Adjust debug_line after relaxation. */ #define DWARF2_USE_FIXED_ADVANCE_PC 1 +#define md_end riscv_md_end +#define CONVERT_SYMBOLIC_ATTRIBUTE riscv_convert_symbolic_attribute + +extern void riscv_md_end (void); +extern int riscv_convert_symbolic_attribute (const char *); + #endif /* TC_RISCV */