aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-msp430.h
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2014-01-24 14:43:58 -0500
committerDJ Delorie <dj@redhat.com>2014-01-24 14:43:58 -0500
commit34b822e3bc707d31e8b8f07cfe264845bc3c6697 (patch)
treefd8a0f2278f42e1f3a26fd756dcf3528cc7669f0 /gas/config/tc-msp430.h
parenta5262f834a754dcc37db768c1ee24d7ae52247e5 (diff)
downloadgdb-34b822e3bc707d31e8b8f07cfe264845bc3c6697.zip
gdb-34b822e3bc707d31e8b8f07cfe264845bc3c6697.tar.gz
gdb-34b822e3bc707d31e8b8f07cfe264845bc3c6697.tar.bz2
Add .data and .bss refsym symbols
For each object, if it has a nonempty .data or .bss section, emit a symbol that could cause the startup code to selectively link in the code to initialize those sections. * config/tc-msp430.c (msp430_section): Always flag data sections, regardless of -md. (msp430_frob_section): New. Make sure all sections are noticed if they have content. (msp430_lcomm): New. Flag bss if .lcomm is seen. (msp430_comm): New. Likewise. (md_pseudo_table): Add them. * config/tc-msp430.h (msp430_frob_section): Declare. (tc_frob_section): Define.
Diffstat (limited to 'gas/config/tc-msp430.h')
-rw-r--r--gas/config/tc-msp430.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gas/config/tc-msp430.h b/gas/config/tc-msp430.h
index f805f66..5f14bbf 100644
--- a/gas/config/tc-msp430.h
+++ b/gas/config/tc-msp430.h
@@ -1,5 +1,5 @@
/* This file is tc-msp430.h
- Copyright (C) 2002-2013 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
@@ -120,6 +120,11 @@ extern long msp430_relax_frag (segT, fragS *, long);
msp430_force_relocation_local (FIX)
extern int msp430_force_relocation_local (struct fix *);
+/* We need to add reference symbols for .data/.bss. */
+#define tc_frob_section(sec) msp430_frob_section (sec)
+extern void msp430_frob_section (asection *);
+
+
extern int msp430_enable_relax;
extern int msp430_enable_polys;