Allow for compilers that do not produce aligned .rdat sections in PE format files.
authorMarc <marc@groundctl.com>
Fri, 9 Nov 2018 11:13:50 +0000 (11:13 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 9 Nov 2018 11:13:50 +0000 (11:13 +0000)
PR 23872
* scripttempl/pep.sc (pe.sc): Ensure rdata_runtime_pseudo_relocs
are aligned.
* scripttempl/pep.sc (pep.sc): Likewise.

ld/ChangeLog
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc

index 0346ebbf13c5384b1a1e48b613d62cc4fdbe1d73..840983b41d68f181f27b077361d2e5d02e32fe64 100644 (file)
@@ -1,3 +1,10 @@
+2018-11-09  Marc  <marc@groundctl.com>
+
+       PR 23872
+       * scripttempl/pep.sc (pe.sc): Ensure rdata_runtime_pseudo_relocs
+       are aligned.
+       * scripttempl/pep.sc (pep.sc): Likewise.
+
 2018-11-06  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/config/default.exp (ELFEDIT): New.
index 8fdeaff60eeda0aff304da1e9711297ca4136043..2968f8ec2d04a0290c78fe6d5dfdd96c81412378 100644 (file)
@@ -161,6 +161,7 @@ SECTIONS
   .rdata ${RELOCATING+BLOCK(__section_alignment__)} :
   {
     ${R_RDATA}
+    . = ALIGN(4);
     ${RELOCATING+__rt_psrelocs_start = .;}
     ${RELOCATING+KEEP(*(.rdata_runtime_pseudo_reloc))}
     ${RELOCATING+__rt_psrelocs_end = .;}
index a7157dcdcc23affbe24bc9ee63cbf006593aa2ef..cdef041183e3bbc2457d187536e7d02ed9d1479c 100644 (file)
@@ -161,6 +161,7 @@ SECTIONS
   .rdata ${RELOCATING+BLOCK(__section_alignment__)} :
   {
     ${R_RDATA}
+    . = ALIGN(4);
     ${RELOCATING+__rt_psrelocs_start = .;}
     ${RELOCATING+KEEP(*(.rdata_runtime_pseudo_reloc))}
     ${RELOCATING+__rt_psrelocs_end = .;}