https://sourceware.org/bugzilla/show_bug.cgi?id=33756

            Bug ID: 33756
           Summary: sframe failure to represent cfi_remember_state right
                    after cfi_startproc
           Product: binutils
           Version: 2.46 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: indu.bhagat at oracle dot com
  Target Milestone: ---

$ cat cfi_remember_state.s 
        .text
        .type   foo, @function
foo:
        .cfi_startproc
        .cfi_remember_state
        .long 0
        .cfi_offset 6, -112
        .cfi_offset 7, -104
        .long 0
        .cfi_adjust_cfa_offset 160
        .long 0
        .long 0
        .cfi_restore_state
        .long 0
        .cfi_endproc
        .size   foo, .-foo

$ as --gsframe cfi_remember_state.s -o cfi_remember_state.o 
cfi_remember_state.s: Assembler messages:
cfi_remember_state.s: Warning: no SFrame FDE emitted; .cfi_remember_state
without prior SFrame FRE state

$ objdump -Wf cfi_remember_state.o 00000000 0000000000000014 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_nop
  DW_CFA_nop

00000018 000000000000001c 0000001c FDE cie=00000000
pc=0000000000000000..0000000000000014
  DW_CFA_remember_state
  DW_CFA_advance_loc: 4 to 0000000000000004
  DW_CFA_offset: r6 (rbp) at cfa-112
  DW_CFA_offset: r7 (rsp) at cfa-104
  DW_CFA_advance_loc: 4 to 0000000000000008
  DW_CFA_def_cfa_offset: 168
  DW_CFA_advance_loc: 8 to 0000000000000010
  DW_CFA_restore_state
  DW_CFA_nop
  DW_CFA_nop
  DW_CFA_nop

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to