aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorMarc <marc@groundctl.com>2018-11-09 11:13:50 +0000
committerNick Clifton <nickc@redhat.com>2018-11-09 11:13:50 +0000
commit73af69e74974eaa155eec89867e3ccc77ab39f6d (patch)
tree85fc495edbb5fa63797d6511428025a83a8a2231 /ld/scripttempl
parent9325300dc283ece6bf6305b912f53114c0895114 (diff)
downloadfsf-binutils-gdb-73af69e74974eaa155eec89867e3ccc77ab39f6d.zip
fsf-binutils-gdb-73af69e74974eaa155eec89867e3ccc77ab39f6d.tar.gz
fsf-binutils-gdb-73af69e74974eaa155eec89867e3ccc77ab39f6d.tar.bz2
Allow for compilers that do not produce aligned .rdat sections in PE format files.
PR 23872 * scripttempl/pep.sc (pe.sc): Ensure rdata_runtime_pseudo_relocs are aligned. * scripttempl/pep.sc (pep.sc): Likewise.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/pe.sc1
-rw-r--r--ld/scripttempl/pep.sc1
2 files changed, 2 insertions, 0 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index 8fdeaff..2968f8e 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -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 = .;}
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index a7157dc..cdef041 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -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 = .;}