From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Lipe To: egcs@egcs.cygnus.com Subject: dwarf2 debug dependent upon GAS? Date: Sun, 21 Feb 1999 12:47:00 -0000 Message-id: <19990221144644.M8783@rjlhome.sco.com> X-SW-Source: 1999-02/msg01041.html I've had it on my list to examine Dwarf2 debugging for System V. I'm finding that it seems to depend upon a curiosity of the GNU assembler. Is this accurate? I'm seeing EGCS (current trunk) generate refences to symbols that don't exist. There are SECTIONS of that name, but no symbols. Apparently GAS treat them interchangably. Is it the intent for these to reference the beginning of the section in this file (i.e. local labels) or the beginning of that section once linked? (without making them global, I don't know how I would synthesize that.) $ ./as x.s (robertl) rjludi:/home3/negcs/gcc $ /bin/as x.s UX:as: ERROR: (EOF):undefined name: .debug_info UX:as: ERROR: (EOF):undefined name: .debug_abbrev UX:as: ERROR: (EOF):undefined name: .debug_line UX:as: ERROR: (EOF):undefined name: .text (robertl) rjludi:/home3/negcs/gcc $ grep debug_info x.s .section .debug_info .4byte .debug_info .4byte .debug_info If it's the intent for them to be local, I can probably just arrange to have something like: .section .debug_info .debug_info: .section .debug_abbrev .debug_abbrev: .section .debug_line .debug_line: .section .text .text: emitted at the top of each file. Any thoughts? RJL From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Lipe To: egcs@egcs.cygnus.com Subject: dwarf2 debug dependent upon GAS? Date: Sun, 28 Feb 1999 22:53:00 -0000 Message-ID: <19990221144644.M8783@rjlhome.sco.com> X-SW-Source: 1999-02n/msg01043.html Message-ID: <19990228225300.uFX5uEqMzkZzek-4Cu3OOiyr8PjW0Y_PCssAZBg77CE@z> I've had it on my list to examine Dwarf2 debugging for System V. I'm finding that it seems to depend upon a curiosity of the GNU assembler. Is this accurate? I'm seeing EGCS (current trunk) generate refences to symbols that don't exist. There are SECTIONS of that name, but no symbols. Apparently GAS treat them interchangably. Is it the intent for these to reference the beginning of the section in this file (i.e. local labels) or the beginning of that section once linked? (without making them global, I don't know how I would synthesize that.) $ ./as x.s (robertl) rjludi:/home3/negcs/gcc $ /bin/as x.s UX:as: ERROR: (EOF):undefined name: .debug_info UX:as: ERROR: (EOF):undefined name: .debug_abbrev UX:as: ERROR: (EOF):undefined name: .debug_line UX:as: ERROR: (EOF):undefined name: .text (robertl) rjludi:/home3/negcs/gcc $ grep debug_info x.s .section .debug_info .4byte .debug_info .4byte .debug_info If it's the intent for them to be local, I can probably just arrange to have something like: .section .debug_info .debug_info: .section .debug_abbrev .debug_abbrev: .section .debug_line .debug_line: .section .text .text: emitted at the top of each file. Any thoughts? RJL