aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-05 23:15:34 +0000
committerRichard Henderson <rth@redhat.com>1999-06-05 23:15:34 +0000
commit9de8d8f1848f870605f4e94ffd9d2f1baa005c93 (patch)
tree8e6f6a20b2de6c7f1d91784f54b103d69774cffe /gas/dwarf2dbg.c
parent9894490542aa133d03f55b98fe59fabbfde335c0 (diff)
downloadgdb-9de8d8f1848f870605f4e94ffd9d2f1baa005c93.zip
gdb-9de8d8f1848f870605f4e94ffd9d2f1baa005c93.tar.gz
gdb-9de8d8f1848f870605f4e94ffd9d2f1baa005c93.tar.bz2
* dwarf2dbg.c (dwarf2_gen_line_info): Mirror the section symbol
creation logic from obj_elf_create_section. * config/obj-elf.c (elf_pseudo_tab): Add pushsection/popsection. (section_stack): New. (special_sections): Make const. (obj_elf_section): Gut and rewrite parsing. (obj_elf_change_section): New function broken out of obj_elf_section. (obj_elf_parse_section_letters): Likewise. (obj_elf_section_word): Likewise. (obj_elf_section_type): Likewise. (obj_elf_previous): Treat as a toggle. (obj_elf_popsection): New. * config/tc-ppc.c (ppc_section_word): Take str+len not ptr_str. (ppc_section_type): Likewise. * config/tc-ppc.h: Likewise. * expr.h (struct expressionS): Don't make X_op a bitfield. * config/tc-alpha.c: Update for symbol handling changes. (md_apply_fix) [case GPREL]: Use now_seg instead of absolute_section. (load_expression, emit_ir_load, emit_loadstore, emit_jsrjmp): Likewise.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index c23b7f6..4bea534 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -393,11 +393,17 @@ dwarf2_gen_line_info (addr, l)
if (!ls.line_seg)
{
+ symbolS *secsym;
+
ls.line_seg = subseg_new (".debug_line", 0);
bfd_set_section_flags (stdoutput, ls.line_seg, SEC_READONLY);
/* We're going to need this symbol. */
- (void) section_symbol (ls.line_seg);
+ secsym = symbol_find (".debug_line");
+ if (secsym != NULL)
+ symbol_set_bfdsym (secsym, ls.line_seg->symbol);
+ else
+ symbol_table_insert (section_symbol (ls.line_seg));
}
saved_seg = now_seg;