Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d0d5060 authored by Vineet Gupta's avatar Vineet Gupta
Browse files

ARC: dw2 unwind: Don't bail for CIE.version != 1



The rudimentary CIE.version == 3 handling is already present in code
(for return address register specification)

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 2d64affc
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -600,9 +600,6 @@ static signed fde_pointer_type(const u32 *cie)
	const u8 *ptr = (const u8 *)(cie + 2);
	unsigned version = *ptr;

	if (version != 1)
		return -1;	/* unsupported */

	if (*++ptr) {
		const char *aug;
		const u8 *end = (const u8 *)(cie + 1) + *cie;
@@ -1014,9 +1011,7 @@ int arc_unwind(struct unwind_frame_info *frame)
		ptr = (const u8 *)(cie + 2);
		end = (const u8 *)(cie + 1) + *cie;
		frame->call_frame = 1;
		if ((state.version = *ptr) != 1)
			cie = NULL;	/* unsupported version */
		else if (*++ptr) {
		if (*++ptr) {
			/* check if augmentation size is first (thus present) */
			if (*ptr == 'z') {
				while (++ptr < end && *ptr) {