Add .data and .bss refsym symbols
authorDJ Delorie <dj@redhat.com>
Fri, 24 Jan 2014 19:43:58 +0000 (14:43 -0500)
committerDJ Delorie <dj@redhat.com>
Fri, 24 Jan 2014 19:43:58 +0000 (14:43 -0500)
commit34b822e3bc707d31e8b8f07cfe264845bc3c6697
treefd8a0f2278f42e1f3a26fd756dcf3528cc7669f0
parenta5262f834a754dcc37db768c1ee24d7ae52247e5
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.
gas/ChangeLog
gas/config/tc-msp430.c
gas/config/tc-msp430.h