aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2018-10-16 16:29:23 +1030
committerAlan Modra <amodra@gmail.com>2018-10-16 16:41:57 +1030
commit48dcd4ea064ae86364dacbf4dd7f035fba56151c (patch)
tree405e2fa19f4a0fcf6cc1df6e509aac447cb99e6c /bfd/ChangeLog
parent8df73d5cc3a87101f3bd254f33820fcce61bc971 (diff)
downloadfsf-binutils-gdb-48dcd4ea064ae86364dacbf4dd7f035fba56151c.zip
fsf-binutils-gdb-48dcd4ea064ae86364dacbf4dd7f035fba56151c.tar.gz
fsf-binutils-gdb-48dcd4ea064ae86364dacbf4dd7f035fba56151c.tar.bz2
Simplify PR23110 PE_DEBUG_DATA size checks
The negative size check can be rolled into the "exceeds space left in section" check if that is done using an unsigned comparison. We know that "addr - section->vma" is never larger than section->size since the section is found by find_section_by_vma. * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Simplify PE_DEBUG_DATA size checks.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ab665ed..9fcc6fc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2018-10-16 Alan Modra <amodra@gmail.com>
+ * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Simplify
+ PE_DEBUG_DATA size checks.
+
+2018-10-16 Alan Modra <amodra@gmail.com>
+
PR 23781
* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Free data
before returning.