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

            Bug ID: 32879
           Summary: sframe: Assembler internal error when translating
                    cfi_def_cfa_register
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: claziss at gmail dot com
  Target Milestone: ---

Created attachment 16028
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16028&action=edit
Tentative patch

While translating cfi_def_cfa_register into SFrame context, we need information
about last translated FRE to set the cfa offset. However, there are cases when
the last translated FRE is empty, thus, we need to set the cfa offset to a
neutral value, otherwise, we read from a null location. Thus, triggering an
assembler internal error.

This error was observing while compiling glibc's tst-quadmod1.S test file with
--gsframe option. 

Example triggering the error:

       .cfi_startproc
       .cfi_def_cfa_register 6
       .cfi_endproc

Tentative patch attached.

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

Reply via email to