From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Merrill To: Robert Lipe Cc: bfd@cygnus.com Subject: Re: patch was: dwarf2 debug dependent upon GAS? Date: Thu, 11 Mar 1999 00:02:00 -0000 Message-id: References: <19990226012522.D17655@rjlhome.sco.com> <29507.920192219@hurl.cygnus.com> <19990228160642.H20315@rjlhome.sco.com> <19990301102454.Q20315@rjlhome.sco.com> <19990302002736.G27552@rjlhome.sco.com> X-SW-Source: 1999/msg00034.html >>>>> Robert Lipe writes: [ context: SCO as doesn't support referring to the section name as a symbol, so we're changing the dwarf2 code in gcc to spit out a label to use instead. ] >> >> shortening the label names, so as to use less space in the symbol >> >> table. >> >> > They're locals, so they don't go in the symbol table, right? >> > They certainly don't appear in nm or even a 'strings -a' of the >> > resulting dot-o. >> >> Don't they? I thought they would, since we are creating relocs >> against them. > Uuuh, no. That's how we started this discussion. The section name > was treated as a local label for the beginning of the section in this > compilation unit. Therefore, they're completely local and don't need > to appear in the symbol table. This is irrelevant to your patch, but on Linux the local symbols do show up in the symbol table, as I remembered; I always filter nm output as a result. This may be a gas thing. Any gas folk care to comment? Jason