diff options
-rw-r--r-- | ld/ChangeLog | 7 | ||||
-rw-r--r-- | ld/scripttempl/pe.sc | 2 | ||||
-rw-r--r-- | ld/scripttempl/pep.sc | 2 |
3 files changed, 9 insertions, 2 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 8cff90b..1207631 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2022-12-21 Nick Clifton <nickc@redhat.com> + + PR 29900 + * scripttempl/pe.sc: Keep the .drectve section when performing a + relocateable link. + * scripttempl/pep.sc: Likewise. + 2022-12-08 Nick Clifton <nickc@redhat.com> PR 29861 diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index d56309e..6f559cf 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -203,7 +203,7 @@ SECTIONS *(.debug\$S) *(.debug\$T) *(.debug\$F) - *(.drectve) + ${RELOCATING+ *(.drectve)} ${RELOCATING+ *(.note.GNU-stack)} ${RELOCATING+ *(.gnu.lto_*)} } diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index f8fa743..cb404eb 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -208,7 +208,7 @@ SECTIONS *(.debug\$S) *(.debug\$T) *(.debug\$F) - *(.drectve) + ${RELOCATING+ *(.drectve)} ${RELOCATING+ *(.note.GNU-stack)} ${RELOCATING+ *(.gnu.lto_*)} } |