public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15407] New: Partial frame info in sysdeps/x86_64/start.S
@ 2013-04-26 17:20 hjl.tools at gmail dot com
  2013-04-26 17:21 ` [Bug libc/15407] " hjl.tools at gmail dot com
                   ` (29 more replies)
  0 siblings, 30 replies; 31+ messages in thread
From: hjl.tools at gmail dot com @ 2013-04-26 17:20 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=15407

             Bug #: 15407
           Summary: Partial frame info in sysdeps/x86_64/start.S
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: hjl.tools@gmail.com
                CC: drepper.fsp@gmail.com, jan.kratochvil@redhat.com
    Classification: Unclassified


The commit:

commit 6a1bd2a100c958d30bbfe8c9b8f9071d24b7c3f4
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Mar 16 20:49:23 2012 +0100

      * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
      (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.

adds partial frame info in sysdeps/x86_64/start.S:

[hjl@gnu-6 build-x86_64-linux]$ objdump -drw csu/start.o

csu/start.o:     file format elf64-x86-64


Disassembly of section .text:

0000000000000000 <_start>:
   0:    31 ed                    xor    %ebp,%ebp
   2:    49 89 d1                 mov    %rdx,%r9
   5:    5e                       pop    %rsi
   6:    48 89 e2                 mov    %rsp,%rdx
   9:    48 83 e4 f0              and    $0xfffffffffffffff0,%rsp
   d:    50                       push   %rax
   e:    54                       push   %rsp
   f:    49 c7 c0 00 00 00 00     mov    $0x0,%r8    12: R_X86_64_32S   
__libc_csu_fini
  16:    48 c7 c1 00 00 00 00     mov    $0x0,%rcx    19: R_X86_64_32S   
__libc_csu_init
  1d:    48 c7 c7 00 00 00 00     mov    $0x0,%rdi    20: R_X86_64_32S    main
  24:    e8 00 00 00 00           callq  29 <_start+0x29>    25: R_X86_64_PC32 
  __libc_start_main-0x4
  29:    f4                       hlt    
[hjl@gnu-6 build-x86_64-linux]$ readelf -wf csu/start.o
Contents of the .eh_frame section:

00000000 00000014 00000000 CIE
  Version:               1
  Augmentation:          "zR"
  Code alignment factor: 1
  Data alignment factor: -8
  Return address column: 16
  Augmentation data:     1b

  DW_CFA_def_cfa: r7 (rsp) ofs 8
  DW_CFA_offset: r16 (rip) at cfa-8
  DW_CFA_undefined: r16 (rip)

00000018 00000014 0000001c FDE cie=00000000 pc=00000000..0000002a
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

[hjl@gnu-6 build-x86_64-linux]$ 

Since it ignores stack ops, stack unwind fails in certain cases.
exception_static_test in gold is one example.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-06-13 18:14 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-26 17:20 [Bug libc/15407] New: Partial frame info in sysdeps/x86_64/start.S hjl.tools at gmail dot com
2013-04-26 17:21 ` [Bug libc/15407] " hjl.tools at gmail dot com
2013-04-26 19:20 ` hjl.tools at gmail dot com
2013-04-26 19:28 ` hjl.tools at gmail dot com
2013-04-26 19:32 ` jan.kratochvil at redhat dot com
2013-04-26 19:40 ` jakub at redhat dot com
2013-04-26 21:22 ` roland at gnu dot org
2013-04-26 21:30 ` hjl.tools at gmail dot com
2013-04-26 21:35 ` roland at gnu dot org
2013-04-26 21:58 ` hjl.tools at gmail dot com
2013-04-26 22:17 ` roland at gnu dot org
2013-04-27 16:31 ` jan.kratochvil at redhat dot com
2013-04-29 16:11 ` hjl.tools at gmail dot com
2013-04-29 16:53 ` hjl.tools at gmail dot com
2013-04-29 22:17 ` allan at archlinux dot org
2013-04-30 15:36 ` jan.kratochvil at redhat dot com
2013-04-30 15:45 ` hjl.tools at gmail dot com
2013-05-05 18:40 ` jan.kratochvil at redhat dot com
2013-05-06 17:23 ` jan.kratochvil at redhat dot com
2013-05-09 15:26 ` hjl.tools at gmail dot com
2013-05-10 16:33 ` jan.kratochvil at redhat dot com
2013-05-10 16:59 ` hjl.tools at gmail dot com
2013-05-10 17:12 ` jan.kratochvil at redhat dot com
2013-05-10 17:22 ` hjl.tools at gmail dot com
2013-05-10 17:32 ` jan.kratochvil at redhat dot com
2013-05-10 17:45 ` hjl.tools at gmail dot com
2013-05-10 18:26 ` jan.kratochvil at redhat dot com
2013-05-10 20:33 ` hjl.tools at gmail dot com
2013-05-11  5:27 ` jan.kratochvil at redhat dot com
2014-02-07  2:45 ` [Bug libc/15407] [x86_64] " jsm28 at gcc dot gnu.org
2014-06-13 18:14 ` fweimer at redhat dot com

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