aboutsummaryrefslogtreecommitdiff
path: root/gas/subsegs.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-12-08 03:47:57 +0000
committerAlan Modra <amodra@gmail.com>2002-12-08 03:47:57 +0000
commit546c73f905d4d75f07b9b083d8134e53047402d7 (patch)
treeebf17f8102ff01a5cfcaee93f29e3a1be0f2d68c /gas/subsegs.c
parent7d036af2e6cddec29a8a1938185603d2bf08e791 (diff)
downloadgdb-546c73f905d4d75f07b9b083d8134e53047402d7.zip
gdb-546c73f905d4d75f07b9b083d8134e53047402d7.tar.gz
gdb-546c73f905d4d75f07b9b083d8134e53047402d7.tar.bz2
* subsegs.c (section_symbol): Use the symbol, not the section, name.
Diffstat (limited to 'gas/subsegs.c')
-rw-r--r--gas/subsegs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gas/subsegs.c b/gas/subsegs.c
index a546b92..dfdb000 100644
--- a/gas/subsegs.c
+++ b/gas/subsegs.c
@@ -426,7 +426,7 @@ subseg_get (segname, force_new)
if (! seginfo)
{
/* Check whether output_section is set first because secptr may
- be bfd_abs_section_ptr. */
+ be bfd_abs_section_ptr. */
if (secptr->output_section != secptr)
secptr->output_section = secptr;
seginfo = (segment_info_type *) xmalloc (sizeof (*seginfo));
@@ -529,13 +529,13 @@ section_symbol (sec)
if (! EMIT_SECTION_SYMBOLS || symbol_table_frozen)
{
/* Here we know it won't be going into the symbol table. */
- s = symbol_create (sec->name, sec, 0, &zero_address_frag);
+ s = symbol_create (sec->symbol->name, sec, 0, &zero_address_frag);
}
else
{
- s = symbol_find_base (sec->name, 0);
+ s = symbol_find_base (sec->symbol->name, 0);
if (s == NULL)
- s = symbol_new (sec->name, sec, 0, &zero_address_frag);
+ s = symbol_new (sec->symbol->name, sec, 0, &zero_address_frag);
else
{
if (S_GET_SEGMENT (s) == undefined_section)