summaryrefslogtreecommitdiff
path: root/gas/config/tc-sh.h
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/tc-sh.h')
-rw-r--r--gas/config/tc-sh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-sh.h b/gas/config/tc-sh.h
index b023b488e6..80542f4655 100644
--- a/gas/config/tc-sh.h
+++ b/gas/config/tc-sh.h
@@ -47,8 +47,10 @@ extern void sh_cons_align (int);
/* We need to optimize expr with taking account of rs_align_test
frags. */
+#ifdef OBJ_ELF
#define md_optimize_expr(l,o,r) sh_optimize_expr (l, o, r)
extern int sh_optimize_expr (expressionS *, operatorT, expressionS *);
+#endif
/* When relaxing, we need to generate relocations for alignment
directives. */