Lines Matching full:fix
27 /* The type fixS is defined (to struct fix) in write.h, but write.h uses
29 after the "right" definitions, don't; just forward-declare struct fix
31 struct fix;
57 #define TC_FORCE_RELOCATION(fix) sh_force_relocation (fix) argument
58 extern int sh_force_relocation (struct fix *);
66 #define SWITCH_TABLE_CONS(FIX) (0) argument
68 #define SWITCH_TABLE_CONS(FIX) \ argument
69 ((FIX)->fx_r_type == 0 \
70 && ((FIX)->fx_size == 2 \
71 || (FIX)->fx_size == 1 \
72 || (FIX)->fx_size == 4))
75 #define SWITCH_TABLE(FIX) \ argument
76 ((FIX)->fx_addsy != NULL \
77 && (FIX)->fx_subsy != NULL \
78 && S_GET_SEGMENT ((FIX)->fx_addsy) == text_section \
79 && S_GET_SEGMENT ((FIX)->fx_subsy) == text_section \
80 && ((FIX)->fx_r_type == BFD_RELOC_32 \
81 || (FIX)->fx_r_type == BFD_RELOC_16 \
82 || (FIX)->fx_r_type == BFD_RELOC_8 \
83 || SWITCH_TABLE_CONS (FIX)))
85 #define TC_FORCE_RELOCATION_SUB_SAME(FIX, SEC) \ argument
87 || TC_FORCE_RELOCATION (FIX) \
88 || (sh_relax && SWITCH_TABLE (FIX)))
91 #define TC_VALIDATE_FIX_SUB(FIX) \ argument
92 (sh_relax && SWITCH_TABLE (FIX))
94 #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC) argument
95 extern long md_pcrel_from_section (struct fix *, segT);
140 /* This macro translates between an internal fix and a coff reloc type. */
141 #define TC_COFF_FIX2RTYPE(fix) ((fix)->fx_r_type) argument
148 #define TC_COUNT_RELOC(fix) ((fix)->fx_addsy != NULL) argument
150 #define TC_RELOC_MANGLE(seg, fix, int, paddr) \ argument
151 sh_coff_reloc_mangle ((seg), (fix), (int), (paddr))
153 (struct segment_info_struct *, struct fix *,
214 #define tc_fix_adjustable(FIX) sh_fix_adjustable(FIX) argument
215 extern bfd_boolean sh_fix_adjustable (struct fix *);
218 #define MD_APPLY_SYM_VALUE(FIX) 0 argument
230 #define TC_FORCE_RELOCATION_LOCAL(FIX) \ argument
231 (!(FIX)->fx_pcrel \
232 || (FIX)->fx_plt \
233 || (FIX)->fx_r_type == BFD_RELOC_32_PLT_PCREL \
234 || (FIX)->fx_r_type == BFD_RELOC_32_GOT_PCREL \
235 || (FIX)->fx_r_type == BFD_RELOC_SH_GOTPC \
236 || TC_FORCE_RELOCATION (FIX))
238 #define TC_FORCE_RELOCATION_SUB_LOCAL(FIX) (sh_relax && SWITCH_TABLE (FIX)) argument
242 #define TC_FORCE_RELOCATION_SUB_ABS(FIX) \ argument
243 ((FIX)->fx_r_type == BFD_RELOC_32_PLT_PCREL)
247 #define TC_VALIDATE_FIX_SUB(FIX) \ argument
248 ((FIX)->fx_r_type == BFD_RELOC_32_PLT_PCREL \
249 || (sh_relax && SWITCH_TABLE (FIX)))