public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/24634]  New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
@ 2005-11-02 12:38 mlynarik at decef dot elf dot stuba dot sk
  2005-11-02 15:19 ` [Bug debug/24634] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: mlynarik at decef dot elf dot stuba dot sk @ 2005-11-02 12:38 UTC (permalink / raw)
  To: gcc-bugs

We are using a cross compiler for 64 bit Linux on MIPS yosemite. When we
compile c sources with command: mips64-linux-gnu-gcc -c -gdwarf-2 -mabi=64
xxx.c then the value of atribute in dwarf2 info : DW_AT_high_pc and
DW_AT_low_pc is 0 what is surely wrong

for mips64-linux-gnu-gcc -c -gdwarf-2 -mabi=32 there are reasonable values in
these attributes


-- 
           Summary: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug
                    info in object file in 64bit world
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mlynarik at decef dot elf dot stuba dot sk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
@ 2005-11-02 15:19 ` pinskia at gcc dot gnu dot org
  2005-11-03 11:39 ` mlynarik at decef dot elf dot stuba dot sk
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-02 15:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-02 15:19 -------
Are you sure that there are no relocations and that it is zero because of them?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
  2005-11-02 15:19 ` [Bug debug/24634] " pinskia at gcc dot gnu dot org
@ 2005-11-03 11:39 ` mlynarik at decef dot elf dot stuba dot sk
  2005-11-03 11:46 ` mlynarik at decef dot elf dot stuba dot sk
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mlynarik at decef dot elf dot stuba dot sk @ 2005-11-03 11:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mlynarik at decef dot elf dot stuba dot sk  2005-11-03 11:39 -------
Created an attachment (id=10122)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10122&action=view)
Example files describing the problem

Zipped archive contains a c-source, 2 object files and 2 dwarfdump listings


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
  2005-11-02 15:19 ` [Bug debug/24634] " pinskia at gcc dot gnu dot org
  2005-11-03 11:39 ` mlynarik at decef dot elf dot stuba dot sk
@ 2005-11-03 11:46 ` mlynarik at decef dot elf dot stuba dot sk
  2005-11-03 14:32 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mlynarik at decef dot elf dot stuba dot sk @ 2005-11-03 11:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mlynarik at decef dot elf dot stuba dot sk  2005-11-03 11:46 -------
We have attached a c-source file which was compiled once for 64bit abi and once
for 32bit abi with command: "mips64-linux-gnu-gcc -c -gdwarf-2 -mabi=XX
example1.c". The resulting object files are example1_64.o and example1_32.o.
Then we have made a dwarfdump listings of these files named: example1_64.txt
and example1_32.txt. You can see that the DW_AT_low_pc and DW_AT_high_pc values
in 32bit abi have reasonable values, while for 64bit abi they are zero.
This is not a problem of the dwarfdump, because this values can be found also
by hand in the object files.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
                   ` (2 preceding siblings ...)
  2005-11-03 11:46 ` mlynarik at decef dot elf dot stuba dot sk
@ 2005-11-03 14:32 ` pinskia at gcc dot gnu dot org
  2005-11-04  9:03 ` mlynarik at decef dot elf dot stuba dot sk
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-03 14:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-11-03 14:32 -------
(In reply to comment #3)
Can you look instead into the .s file when compiled with -dA which adds
annotations and then see if DW_AT_high_pc and DW_AT_low_pc is really zero.  I
really doubt it.  What you are seeing is relocations not been shown in the dump
of the object file.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
                   ` (3 preceding siblings ...)
  2005-11-03 14:32 ` pinskia at gcc dot gnu dot org
@ 2005-11-04  9:03 ` mlynarik at decef dot elf dot stuba dot sk
  2005-11-04  9:04 ` mlynarik at decef dot elf dot stuba dot sk
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: mlynarik at decef dot elf dot stuba dot sk @ 2005-11-04  9:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from mlynarik at decef dot elf dot stuba dot sk  2005-11-04 09:03 -------
Created an attachment (id=10141)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10141&action=view)
Assembler source of comiled example2-32.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
                   ` (4 preceding siblings ...)
  2005-11-04  9:03 ` mlynarik at decef dot elf dot stuba dot sk
@ 2005-11-04  9:04 ` mlynarik at decef dot elf dot stuba dot sk
  2005-11-04  9:13 ` mlynarik at decef dot elf dot stuba dot sk
  2005-11-04 13:10 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mlynarik at decef dot elf dot stuba dot sk @ 2005-11-04  9:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from mlynarik at decef dot elf dot stuba dot sk  2005-11-04 09:04 -------
Created an attachment (id=10142)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10142&action=view)
Assembler source from compilation of example2-64.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
                   ` (5 preceding siblings ...)
  2005-11-04  9:04 ` mlynarik at decef dot elf dot stuba dot sk
@ 2005-11-04  9:13 ` mlynarik at decef dot elf dot stuba dot sk
  2005-11-04 13:10 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: mlynarik at decef dot elf dot stuba dot sk @ 2005-11-04  9:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from mlynarik at decef dot elf dot stuba dot sk  2005-11-04 09:12 -------
We have created the assembler sources with the parameters -dA. You can see that
there are no differences between the 32bit and 64bit versions except the length
of the fields (4bytes and 8bytes). So I think there souldn't be a difference
between these two versions concerning these attributes in the .o files.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

* [Bug debug/24634] DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world
  2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
                   ` (6 preceding siblings ...)
  2005-11-04  9:13 ` mlynarik at decef dot elf dot stuba dot sk
@ 2005-11-04 13:10 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-04 13:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pinskia at gcc dot gnu dot org  2005-11-04 13:10 -------
What you are seing is either an assmebler bug or just dwarfdump not supporting
relocations for 64bit.  I want to say the latter. This is not a GCC bug.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24634


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

end of thread, other threads:[~2005-11-04 13:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-02 12:38 [Bug c/24634] New: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in object file in 64bit world mlynarik at decef dot elf dot stuba dot sk
2005-11-02 15:19 ` [Bug debug/24634] " pinskia at gcc dot gnu dot org
2005-11-03 11:39 ` mlynarik at decef dot elf dot stuba dot sk
2005-11-03 11:46 ` mlynarik at decef dot elf dot stuba dot sk
2005-11-03 14:32 ` pinskia at gcc dot gnu dot org
2005-11-04  9:03 ` mlynarik at decef dot elf dot stuba dot sk
2005-11-04  9:04 ` mlynarik at decef dot elf dot stuba dot sk
2005-11-04  9:13 ` mlynarik at decef dot elf dot stuba dot sk
2005-11-04 13:10 ` pinskia at gcc dot gnu dot org

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).