gas: Check for overflow on return column in version 1 CIE DWARF
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 4 Nov 2019 22:44:48 +0000 (22:44 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 28 Nov 2019 00:03:05 +0000 (00:03 +0000)
commit22eb4a06176dfef554008a62844e0ce30df2260f
treeb1a99bdf6d2cf9c5201a8b124d05f3353d781ff5
parent4762fe621e84347b6e1ad1f2d16d2bc6cd28495e
gas: Check for overflow on return column in version 1 CIE DWARF

In version 1 of DWARF CIE format, the return register column is just a
single byte.  For targets with large numbers of DWARF registers, any
use of a register with a high number for the return column
will (currently) silently overflow giving incorrect DWARF.

This commit adds an error when the overflow occurs.

gas/ChangeLog:

* dw2gencfi.c (output_cie): Error on return column overflow.
* testsuite/gas/riscv/cie-rtn-col-1.d: New file.
* testsuite/gas/riscv/cie-rtn-col-3.d: New file.
* testsuite/gas/riscv/cie-rtn-col.s: New file.

Change-Id: I1809f739ba7771737ec012807f0260e1a3ed5e64
gas/ChangeLog
gas/dw2gencfi.c
gas/testsuite/gas/riscv/cie-rtn-col-1.d [new file with mode: 0644]
gas/testsuite/gas/riscv/cie-rtn-col-3.d [new file with mode: 0644]
gas/testsuite/gas/riscv/cie-rtn-col.s [new file with mode: 0644]
This page took 0.027459 seconds and 4 git commands to generate.