From f07f217c14215ed044b5146a90a14c82d54f9e96 Mon Sep 17 00:00:00 2001 From: amodra Date: Sat, 4 Jul 2009 01:50:43 +0000 Subject: [PATCH] * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections. --- gas/ChangeLog | 4 ++++ gas/config/tc-cr16.h | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 3a2f4576cc..5e097799c4 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2009-07-04 Alan Modra + + * config/tc-cr16.h (TC_LINKRELAX_FIXUP): Set only for code sections. + 2009-07-02 Tristan Gingold * Makefile.am (OBJ_FORMATS): Add macho. diff --git a/gas/config/tc-cr16.h b/gas/config/tc-cr16.h index 9aab15d5af..77caf55bca 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 @@ -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. */ -- 2.11.0