aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-eh-frame.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-08-23 09:42:21 +0000
committerNick Clifton <nickc@redhat.com>2002-08-23 09:42:21 +0000
commit7e326afc1928a24aa05f7acc42b32cee994a49d0 (patch)
tree0b44f06e5cc7692ebeef7e6b73256906931c3443 /bfd/elf-eh-frame.c
parentc8614e8e65e99b4e65a89dce51cf7bec477c082d (diff)
downloadgdb-7e326afc1928a24aa05f7acc42b32cee994a49d0.zip
gdb-7e326afc1928a24aa05f7acc42b32cee994a49d0.tar.gz
gdb-7e326afc1928a24aa05f7acc42b32cee994a49d0.tar.bz2
Undo previous delta. Add comment explaining why.
Diffstat (limited to 'bfd/elf-eh-frame.c')
-rw-r--r--bfd/elf-eh-frame.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bfd/elf-eh-frame.c b/bfd/elf-eh-frame.c
index cf4942a..eb4a69b 100644
--- a/bfd/elf-eh-frame.c
+++ b/bfd/elf-eh-frame.c
@@ -506,7 +506,12 @@ _bfd_elf_discard_section_eh_frame (abfd, info, sec, ehdrsec,
}
read_uleb128 (cie.code_align, buf);
read_sleb128 (cie.data_align, buf);
- cie.ra_column = *buf++;
+ /* Note - in DWARF2 the return address column is an unsigned byte.
+ In DWARF3 it is a ULEB128. We are following DWARF3. For most
+ ports this will not matter as the value will be less than 128.
+ For the others (eg FRV, SH, MMIX, IA64) they need a fixed GCC
+ which conforms to the DWARF3 standard. */
+ read_uleb128 (cie.ra_column, buf);
ENSURE_NO_RELOCS (buf);
cie.lsda_encoding = DW_EH_PE_omit;
cie.fde_encoding = DW_EH_PE_omit;