aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-cr16.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2009-07-04 01:50:44 +0000
committerAlan Modra <amodra@gmail.com>2009-07-04 01:50:44 +0000
commitc1a6351f10ee12ec40b3c1d22d0d0de732a71e49 (patch)
tree520d7f3a9c6056f887397ced12a64adc3b52f7cf /gas/config/tc-cr16.h
parent86fff24db3071e9b68fd47ed0d757161e6f6843a (diff)
downloadfsf-binutils-gdb-c1a6351f10ee12ec40b3c1d22d0d0de732a71e49.zip
fsf-binutils-gdb-c1a6351f10ee12ec40b3c1d22d0d0de732a71e49.tar.gz
fsf-binutils-gdb-c1a6351f10ee12ec40b3c1d22d0d0de732a71e49.tar.bz2
* config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections.
Diffstat (limited to 'gas/config/tc-cr16.h')
-rw-r--r--gas/config/tc-cr16.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gas/config/tc-cr16.h b/gas/config/tc-cr16.h
index 9aab15d..77caf55 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, 2009 Free Software Foundation, Inc.
Contributed by M R Swami Reddy <MR.Swami.Reddy@nsc.com>
@@ -49,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. */