summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/linkerscript/Inputs
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-08-02 08:13:56 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-08-02 08:13:56 +0000
commitadd69e9c1932d9e4f2715e0c7db8f5506abcd45e (patch)
treec95569c3145895fac23bf7414c31a2172d107085 /lld/test/ELF/linkerscript/Inputs
parentfdc6d0aba830087a7b4a0101862408277e3dfbc8 (diff)
downloadbcm5719-llvm-add69e9c1932d9e4f2715e0c7db8f5506abcd45e.tar.gz
bcm5719-llvm-add69e9c1932d9e4f2715e0c7db8f5506abcd45e.zip
[LLD] Only increase LMARegion if different from MemRegion
Patch by Konstantin Schwarz! If both the MemRegion and LMARegion are set for an output section in a linker script, we should only increase the LMARegion if it is different from the MemRegion. Otherwise, we reserve the memory twice. Differential revision: https://reviews.llvm.org/D50065 llvm-svn: 338684
Diffstat (limited to 'lld/test/ELF/linkerscript/Inputs')
-rw-r--r--lld/test/ELF/linkerscript/Inputs/at7.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/lld/test/ELF/linkerscript/Inputs/at7.s b/lld/test/ELF/linkerscript/Inputs/at7.s
new file mode 100644
index 00000000000..29d29635963
--- /dev/null
+++ b/lld/test/ELF/linkerscript/Inputs/at7.s
@@ -0,0 +1,7 @@
+.global _start
+.text
+_start:
+nop
+
+.section .sec, "aw"
+.word 4
OpenPOWER on IntegriCloud