summaryrefslogtreecommitdiffstats
path: root/bsps/i386/pc386/start/linkcmds
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-12 09:44:07 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-08-12 10:10:17 +0200
commit21a36ed19b68bc0b5338eb661028c706cdbbb6ee (patch)
treee8a03b3f6eb372d3fa2e85f80fc67697bd69a7a3 /bsps/i386/pc386/start/linkcmds
parentpsxtimer_face01: Improve coverage and documentation (diff)
downloadrtems-21a36ed19b68bc0b5338eb661028c706cdbbb6ee.tar.bz2
bsps: Fix .data.rel.ro placement
The .data.rel.ro* linker input section pattern accidentally matches with writeable data those symbol name starts with "ro". Close #4701.
Diffstat (limited to 'bsps/i386/pc386/start/linkcmds')
-rw-r--r--bsps/i386/pc386/start/linkcmds2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsps/i386/pc386/start/linkcmds b/bsps/i386/pc386/start/linkcmds
index f11f94cecd..3fe98edb6c 100644
--- a/bsps/i386/pc386/start/linkcmds
+++ b/bsps/i386/pc386/start/linkcmds
@@ -176,7 +176,7 @@ SECTIONS
KEEP (*(.dtors))
}
.jcr : { KEEP (*(.jcr)) }
- .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro* .gnu.linkonce.d.rel.ro.*) }
+ .data.rel.ro : { *(.data.rel.ro.local* .gnu.linkonce.d.rel.ro.local.*) *(.data.rel.ro .data.rel.ro.* .gnu.linkonce.d.rel.ro.*) }
.dynamic : { *(.dynamic) }
.got : { *(.got) }
. = DATA_SEGMENT_RELRO_END (12, .);