This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[RFA] bfd/elf-eh-frame.c: return address column of CIE
- From: kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: binutils at sources dot redhat dot com
- Date: Sun, 18 Aug 2002 21:11:24 +0900
- Subject: [RFA] bfd/elf-eh-frame.c: return address column of CIE
Hi,
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.
kaz
--
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++;
ENSURE_NO_RELOCS (buf);
cie.lsda_encoding = DW_EH_PE_omit;
cie.fde_encoding = DW_EH_PE_omit;