X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gas%2Fconfig%2Ftc-avr.h;h=d58222ec7757b6e6c5fc14769e7f5b0c17c0609f;hb=3528c362d9471524cfe8a76c692081838b292d64;hp=88b7f99d251a186a41e79636cf3754e8879ed47a;hpb=2571583aed598dd3f9651b53434e5f177a0e3cf7;p=deliverable%2Fbinutils-gdb.git diff --git a/gas/config/tc-avr.h b/gas/config/tc-avr.h index 88b7f99d25..d58222ec77 100644 --- a/gas/config/tc-avr.h +++ b/gas/config/tc-avr.h @@ -1,5 +1,5 @@ /* 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 @@ -123,7 +123,8 @@ extern void avr_cons_fix_new (fragS *,int, int, expressionS *, 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. */ @@ -219,11 +220,17 @@ extern bfd_boolean avr_allow_local_subtract (expressionS *, expressionS *, segT) #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 { @@ -233,5 +240,8 @@ 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 *);