mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-27 03:54:29 +00:00
* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
unsigned overflow when new_offset < old_offset.
This commit is contained in:
parent
c895725ba0
commit
c68836a9c0
@ -1,3 +1,8 @@
|
|||||||
|
2002-01-25 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
|
||||||
|
unsigned overflow when new_offset < old_offset.
|
||||||
|
|
||||||
2002-24-01 Philipp Thomas <pthomas@suse.de>
|
2002-24-01 Philipp Thomas <pthomas@suse.de>
|
||||||
|
|
||||||
* bfd.c (_bfd_abort): Fix typo.
|
* bfd.c (_bfd_abort): Fix typo.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* .eh_frame section optimization.
|
/* .eh_frame section optimization.
|
||||||
Copyright 2001 Free Software Foundation, Inc.
|
Copyright 2001, 2002 Free Software Foundation, Inc.
|
||||||
Written by Jakub Jelinek <jakub@redhat.com>.
|
Written by Jakub Jelinek <jakub@redhat.com>.
|
||||||
|
|
||||||
This file is part of BFD, the Binary File Descriptor library.
|
This file is part of BFD, the Binary File Descriptor library.
|
||||||
@ -867,8 +867,8 @@ _bfd_elf_eh_frame_section_offset (output_bfd, sec, offset)
|
|||||||
+ sec_info->entry[mid].lsda_offset)))
|
+ sec_info->entry[mid].lsda_offset)))
|
||||||
return (bfd_vma) -1;
|
return (bfd_vma) -1;
|
||||||
|
|
||||||
return (offset
|
return (offset + sec_info->entry[mid].new_offset
|
||||||
+ (sec_info->entry[mid].new_offset - sec_info->entry[mid].offset));
|
- sec_info->entry[mid].offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Write out .eh_frame section. This is called with the relocated
|
/* Write out .eh_frame section. This is called with the relocated
|
||||||
|
Loading…
x
Reference in New Issue
Block a user