public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Incorrect Listing Output with .lcomm
@ 2001-09-07 16:16 Tracy Kuhrt
  2001-09-10 10:18 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Tracy Kuhrt @ 2001-09-07 16:16 UTC (permalink / raw)
  To: binutils List

Given the source:
        .data

        .lcomm a, 1

        .lcomm b, 50
        .lcomm c, 1

        .text
foo:
        .lcomm d, 1
        .lcomm e, 10
        .lcomm f, 20
        .lcomm g, 1
        .end


binutils configured for a target of sparc-sun-coff generates the
following listing file in which the line numbers listed under DEFINED
SYMBOLS do not match the line numbers where the symbol was defined.
Also, the very first symbol 'a', does not have an associated file and
line number.

Any ideas where I should start looking?

SPARC GAS  /home/users/kuhrtt/tmp/lcomm.s                       page 1


   1                            .data
   2
   3                            .lcomm a, 1
   4
   5                            .lcomm b, 50
   6                            .lcomm c, 1
   7
   8                            .text
   9                    foo:
  10                            .lcomm d, 1
  11                            .lcomm e, 10
  12                            .lcomm f, 20
  13                            .lcomm g, 1
  14                            .end

SPARC GAS  /home/users/kuhrtt/tmp/lcomm.s                       page 2


DEFINED SYMBOLS
                            *ABS*:00000000 fake
                             .bss:00000000 a
/home/users/kuhrtt/tmp/lcomm.s:5      .bss:00000008 b
/home/users/kuhrtt/tmp/lcomm.s:5      .bss:0000003a c
/home/users/kuhrtt/tmp/lcomm.s:9      .text:00000000 foo
/home/users/kuhrtt/tmp/lcomm.s:6      .bss:0000003b d
/home/users/kuhrtt/tmp/lcomm.s:11     .bss:00000040 e
/home/users/kuhrtt/tmp/lcomm.s:12     .bss:00000050 f
/home/users/kuhrtt/tmp/lcomm.s:12     .bss:00000064 g
                            .text:00000000 .text
                            .data:00000000 .data
                             .bss:00000000 .bss

NO UNDEFINED SYMBOLS


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Incorrect Listing Output with .lcomm
  2001-09-07 16:16 Incorrect Listing Output with .lcomm Tracy Kuhrt
@ 2001-09-10 10:18 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2001-09-10 10:18 UTC (permalink / raw)
  To: Tracy Kuhrt; +Cc: binutils List

Hi Tracy,

> binutils configured for a target of sparc-sun-coff generates the
> following listing file in which the line numbers listed under DEFINED
> SYMBOLS do not match the line numbers where the symbol was defined.
> Also, the very first symbol 'a', does not have an associated file and
> line number.
> 
> Any ideas where I should start looking?

I suggest you start by examining the code in s_lcomm_internal() in
gas/read.c.  This parses the .lcomm directive and assigns a frag to
the newly creqted symbol, and it is the frag that contains the line
number information.

Cheers
        Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-10 10:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-07 16:16 Incorrect Listing Output with .lcomm Tracy Kuhrt
2001-09-10 10:18 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).