From: Nick Clifton <nickc@sourceware.org>
To: bfd-cvs@sourceware.org
Subject: [binutils-gdb/binutils-2_40-branch] Avoid unaligned pointer reads in PEP idata section
Date: Thu, 5 Jan 2023 11:57:37 +0000 (GMT) [thread overview]
Message-ID: <20230105115737.5706F3858D28@sourceware.org> (raw)
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c88285779649034f52e83c16adc2b8f922167d0b
commit c88285779649034f52e83c16adc2b8f922167d0b
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Jan 5 11:57:00 2023 +0000
Avoid unaligned pointer reads in PEP idata section
Diff:
---
ld/testsuite/ld-pe/cfi.d | 4 +--
ld/testsuite/ld-pe/secidx_64.d | 40 +++++++++++++++---------------
ld/testsuite/ld-pe/secrel_64.d | 56 +++++++++++++++++++++---------------------
3 files changed, 50 insertions(+), 50 deletions(-)
diff --git a/ld/testsuite/ld-pe/cfi.d b/ld/testsuite/ld-pe/cfi.d
index 55ebaca1aef..9ae0ec77881 100644
--- a/ld/testsuite/ld-pe/cfi.d
+++ b/ld/testsuite/ld-pe/cfi.d
@@ -4,7 +4,7 @@
#objdump: -Wf
#...
-0+4 0+14 0*ffffffff CIE
+0+ 0+14 0*ffffffff CIE
Version: 1
Augmentation: ""
Code alignment factor: 1
@@ -20,7 +20,7 @@
DW_CFA_nop
DW_CFA_nop
-0+1c 0+24 0+4 FDE cie=0+4 pc=.*
+0+18 0+24 0+ FDE cie=0+ pc=.*
DW_CFA_advance_loc: 4 to .*
DW_CFA_def_cfa_offset: 16
DW_CFA_offset: r6 \(rbp\) at cfa\-16
diff --git a/ld/testsuite/ld-pe/secidx_64.d b/ld/testsuite/ld-pe/secidx_64.d
index ddf4aec74f9..63b4a589c70 100644
--- a/ld/testsuite/ld-pe/secidx_64.d
+++ b/ld/testsuite/ld-pe/secidx_64.d
@@ -2,26 +2,26 @@
tmpdir/secidx\.x: +file format pei-.*
Contents of section \.text:
- .*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*1020 3c3c3c3c 3e3e3e3e 3e909090 90909090 <<<<>>>>>.......
- .*1030 ffffffff ffffffff 00000000 00000000 ................
- .*1040 ffffffff ffffffff 00000000 00000000 ................
+ .*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*1020 3c3c3c3c 3e3e3e3e 3e909090 90909090 .*
+ .*1030 ffffffff ffffffff 00000000 00000000 .*
+ .*1040 ffffffff ffffffff 00000000 00000000 .*
Contents of section \.data:
- .*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*2020 3e3e3e3e 01001101 00110100 11010011 >>>>............
- .*2030 3c3c3c3c 3c3c3c3c 3e3e3e3e 02001102 <<<<<<<<>>>>....
- .*2040 00110200 11020011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
- .*2050 3e3e3e3e 03001103 00110300 11030011 >>>>............
- .*2060 3c3c3c3c 3c3c3c3c 3e3e3e3e 01001102 <<<<<<<<>>>>....
- .*2070 00110300 113c3c3c 3c3c3c3c 3c000000 .....<<<<<<<<...
- .*2080 3c3c3c3e 3e3e3e3e 3e000000 00000000 <<<>>>>>>.......
+ .*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*2020 3e3e3e3e 01001101 00110100 11010011 .*
+ .*2030 3c3c3c3c 3c3c3c3c 3e3e3e3e 02001102 .*
+ .*2040 00110200 11020011 3c3c3c3c 3c3c3c3c .*
+ .*2050 3e3e3e3e 03001103 00110300 11030011 .*
+ .*2060 3c3c3c3c 3c3c3c3c 3e3e3e3e 01001102 .*
+ .*2070 00110300 113c3c3c 3c3c3c3c 3c000000 .*
+ .*2080 3c3c3c3e 3e3e3e3e 3e000000 00000000 .*
Contents of section \.rdata:
- .*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*3020 3e3e3e3e 00000000 00000000 00000000 >>>>............
- .*3030 3c3c3c3e 3e3e3e3e 3e000000 00000000 <<<>>>>>>.......
+ .*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*3020 3e3e3e3e 00000000 00000000 00000000 .*
+ .*3030 3c3c3c3e 3e3e3e3e 3e000000 00000000 .*
Contents of section \.idata:
- .*4000 00000000 00000000 00000000 00000000 ................
- .*4010 00000000 ....
+ .*4000 00000000 00000000 00000000 00000000 .*
+ .*4010 00000000 00000000 .*
diff --git a/ld/testsuite/ld-pe/secrel_64.d b/ld/testsuite/ld-pe/secrel_64.d
index aba1bf11c69..82284f9cf62 100644
--- a/ld/testsuite/ld-pe/secrel_64.d
+++ b/ld/testsuite/ld-pe/secrel_64.d
@@ -1,28 +1,28 @@
-
-tmpdir/secrel\.x: +file format pei-.*
-
-Contents of section \.text:
- .*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*1020 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*1030 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*1040 ffffffff ffffffff 00000000 00000000 ................
- .*1050 ffffffff ffffffff 00000000 00000000 ................
-Contents of section \.data:
- .*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*2020 3e3e3e3e 04000000 110d0000 00111600 >>>>............
- .*2030 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
- .*2040 3e3e3e3e 04000000 110d0000 00111600 >>>>............
- .*2050 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
- .*2060 3e3e3e3e 04000000 110d0000 00111600 >>>>............
- .*2070 0000111f 00000011 3c3c3c3c 3c3c3c3c ........<<<<<<<<
- .*2080 3e3e3e3e 24000000 112d0000 00113600 >>>>\$....-....6.
- .*2090 0000113f 00000011 3c3c3c3c 3c3c3c3c ...\?....<<<<<<<<
-Contents of section \.rdata:
- .*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c >>>><<<<>>>>><<<
- .*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c >>>>>><<>>>>>>><
- .*3020 3e3e3e3e 00000000 00000000 00000000 >>>>............
-Contents of section \.idata:
- .*4000 00000000 00000000 00000000 00000000 ................
- .*4010 00000000 ....
+
+tmpdir/secrel\.x: +file format pei-.*
+
+Contents of section \.text:
+ .*1000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*1010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*1020 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*1030 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*1040 ffffffff ffffffff 00000000 00000000 .*
+ .*1050 ffffffff ffffffff 00000000 00000000 .*
+Contents of section \.data:
+ .*2000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*2010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*2020 3e3e3e3e 04000000 110d0000 00111600 .*
+ .*2030 0000111f 00000011 3c3c3c3c 3c3c3c3c .*
+ .*2040 3e3e3e3e 04000000 110d0000 00111600 .*
+ .*2050 0000111f 00000011 3c3c3c3c 3c3c3c3c .*
+ .*2060 3e3e3e3e 04000000 110d0000 00111600 .*
+ .*2070 0000111f 00000011 3c3c3c3c 3c3c3c3c .*
+ .*2080 3e3e3e3e 24000000 112d0000 00113600 .*
+ .*2090 0000113f 00000011 3c3c3c3c 3c3c3c3c .*
+Contents of section \.rdata:
+ .*3000 3e3e3e3e 3c3c3c3c 3e3e3e3e 3e3c3c3c .*
+ .*3010 3e3e3e3e 3e3e3c3c 3e3e3e3e 3e3e3e3c .*
+ .*3020 3e3e3e3e 00000000 00000000 00000000 .*
+Contents of section \.idata:
+ .*4000 00000000 00000000 00000000 00000000 .*
+ .*4010 00000000 00000000 .*
reply other threads:[~2023-01-05 11:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230105115737.5706F3858D28@sourceware.org \
--to=nickc@sourceware.org \
--cc=bfd-cvs@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).