PR29250, readelf erases CIE initial register state
authorAlan Modra <amodra@gmail.com>
Wed, 15 Jun 2022 13:00:51 +0000 (22:30 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 16 Jun 2022 00:24:55 +0000 (09:54 +0930)
commit45bf072b34068b5a98947862b2aa183ab646e7ea
tree39c30c9557e46988678a0f92698b9c4ad556e728
parent0fbc4f6aeb3f66f86d93ab45d508e351b1c5c9f5
PR29250, readelf erases CIE initial register state

PR 29250
binutils/
* dwarf.c (display_debug_frames): Set col_type[reg] on sizing
pass over FDE to cie->col_type[reg] if CIE specifies reg.
Handle DW_CFA_restore and DW_CFA_restore_extended on second
pass using the same logic.  Remove unnecessary casts.  Don't
call frame_need_space on second pass over FDE.
gas/
* testsuite/gas/i386/ehinterp.d,
* testsuite/gas/i386/ehinterp.s: New test.
* testsuite/gas/i386/i386.exp: Run it.
binutils/dwarf.c
gas/testsuite/gas/i386/ehinterp.d [new file with mode: 0644]
gas/testsuite/gas/i386/ehinterp.s [new file with mode: 0644]
gas/testsuite/gas/i386/i386.exp