aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorVijay Shankar <shank.vijay@yandex.com>2024-04-15 16:27:21 +0100
committerNick Clifton <nickc@redhat.com>2024-04-15 16:27:21 +0100
commitccbf42ec88f3e8bbb74dbdc1d6c9da3a9d805cff (patch)
treed023909642724092491a910941cb1631c8c098a5 /binutils
parent75670e0075df0f6fc8c324ea11de193a038274d6 (diff)
downloadgdb-ccbf42ec88f3e8bbb74dbdc1d6c9da3a9d805cff.zip
gdb-ccbf42ec88f3e8bbb74dbdc1d6c9da3a9d805cff.tar.gz
gdb-ccbf42ec88f3e8bbb74dbdc1d6c9da3a9d805cff.tar.bz2
When mapping sections to segments ensure that we do not add sections whose VMA->LMA relationship does not match the relationship of earlier sections in the segment.
PR 31540
Diffstat (limited to 'binutils')
-rw-r--r--binutils/testsuite/binutils-all/pr25662.ld2
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/pr25662.ld b/binutils/testsuite/binutils-all/pr25662.ld
index 19ef139..4951184 100644
--- a/binutils/testsuite/binutils-all/pr25662.ld
+++ b/binutils/testsuite/binutils-all/pr25662.ld
@@ -12,4 +12,6 @@ SECTIONS
.text : { *(.text) } > ROM
.bss : { *(.bss) } > RAM
+
+ /DISCARD/ : { *(.*) }
}