/* This file is tc-avr.h
- Copyright (C) 1999-2017 Free Software Foundation, Inc.
+ Copyright (C) 1999-2019 Free Software Foundation, Inc.
Contributed by Denis Chertykov <denisc@overta.ru>
even when the value can be resolved locally. Do that if linkrelax is turned on */
#define TC_FORCE_RELOCATION(fix) avr_force_relocation (fix)
#define TC_FORCE_RELOCATION_SUB_SAME(fix, seg) \
- (! SEG_NORMAL (seg) || avr_force_relocation (fix))
+ (GENERIC_FORCE_RELOCATION_SUB_SAME (fix, seg) \
+ || avr_force_relocation (fix))
extern int avr_force_relocation (struct fix *);
/* Values passed to md_apply_fix don't include the symbol value. */
#define elf_tc_final_processing avr_elf_final_processing
extern void avr_elf_final_processing (void);
+#define md_pre_output_hook avr_pre_output_hook ()
+extern void avr_pre_output_hook (void);
+
+#define md_undefined_symbol avr_undefined_symbol
+extern symbolS* avr_undefined_symbol (char*);
+
#define md_post_relax_hook avr_post_relax_hook ()
extern void avr_post_relax_hook (void);
#define HANDLE_ALIGN(fragP) avr_handle_align (fragP)
-extern void avr_handle_align (fragS *fragP);
+extern void avr_handle_align (fragS *);
struct avr_frag_data
{
char fill;
offsetT alignment;
+ unsigned int prev_opcode;
};
#define TC_FRAG_TYPE struct avr_frag_data
+#define TC_FRAG_INIT(frag, max_bytes) avr_frag_init (frag)
+extern void avr_frag_init (fragS *);