[RFA] bfd/elf-eh-frame.c: return address column of CIE

kaz Kojima kkojima@rr.iij4u.or.jp
Sun Aug 18 05:29:00 GMT 2002


The DWARF 2 draft says that the return address register column of CIE
of an eh_frame has the unsigned byte type. I've seen also that gcc
puts it as an unsigned byte. So _bfd_elf_discard_section_eh_frame
shouldn't use read_uleb128 when reading it.

2002-08-18  Kaz Kojima <kkojima@rr.iij4u.or.jp>

	* elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use a simple
	byte read when reading the return address register column. 

--- ORIG/src/bfd/elf-eh-frame.c	Sat Jun 29 08:45:36 2002
+++ LOCAL/src/bfd/elf-eh-frame.c	Thu Aug 15 07:44:09 2002
@@ -506,7 +506,7 @@ _bfd_elf_discard_section_eh_frame (abfd,
 	  read_uleb128 (cie.code_align, buf);
 	  read_sleb128 (cie.data_align, buf);
-	  read_uleb128 (cie.ra_column, buf);
+	  cie.ra_column = *buf++;
 	  cie.lsda_encoding = DW_EH_PE_omit;
 	  cie.fde_encoding = DW_EH_PE_omit;

More information about the Binutils mailing list