X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Fconfig%2Ftc-cr16.h;fp=gas%2Fconfig%2Ftc-cr16.h;h=739317ffef36ec9957f05ca8be60d3b91ce695cc;hp=4b43f2107a6c361c856c5da2d07354a459e33e92;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/gas/config/tc-cr16.h b/gas/config/tc-cr16.h index 4b43f21..739317f 100644 --- a/gas/config/tc-cr16.h +++ b/gas/config/tc-cr16.h @@ -1,5 +1,5 @@ /* tc-cr16.h -- Header file for tc-cr16.c, the CR16 GAS port. - Copyright 2007 Free Software Foundation, Inc. + Copyright 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by M R Swami Reddy @@ -27,13 +27,14 @@ #define TARGET_BYTES_BIG_ENDIAN 0 +#define GLOBAL_OFFSET_TABLE_NAME "_GLOBAL_OFFSET_TABLE_" + #define TARGET_FORMAT "elf32-cr16" #define TARGET_ARCH bfd_arch_cr16 #define WORKING_DOT_WORD #define LOCAL_LABEL_PREFIX '.' -#define md_undefined_symbol(s) 0 #define md_number_to_chars number_to_chars_littleendian /* We do relaxing in the assembler as well as the linker. */ @@ -48,8 +49,9 @@ extern const struct relax_type md_relax_table[]; #define TC_FORCE_RELOCATION(FIXP) cr16_force_relocation (FIXP) extern int cr16_force_relocation (struct fix *); -/* Fixup debug sections since we will never relax them. */ -#define TC_LINKRELAX_FIXUP(seg) (seg->flags & SEC_ALLOC) +/* Fixup non-code sections since we will never relax them. */ +#define TC_LINKRELAX_FIXUP(seg) \ + ((seg->flags & (SEC_ALLOC | SEC_CODE)) == (SEC_ALLOC | SEC_CODE)) /* CR16 instructions, with operands included, are a multiple of two bytes long. */