This is the mail archive of the mailing list for the gas2 project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: An EH patch for gas

   From: (H.J. Lu)
   Date: Sat, 29 Aug 1998 07:26:42 -0700 (PDT)

   It is wrong to treat all 0x4 as DW_CFA_advance_loc4. .eh_frame can have

	   .byte	0x9a
	   .byte	0x4
   .align 3
	   .4byte	length

   0x4 here is LEB128 for 0x9a. I believe this patch fixes the bug. Do you
   have a better one?

Could you please send a complete test case?  Your last test case was
only a partial file.

I don't know what the alignment is doing there, unless the 4 is at the
very end of an FDE.  If that is the case, the correct patch is not the
look for .align directives, but instead to pay attention to the length
of the FDE.