diff options
Diffstat (limited to 'ld/testsuite')
-rw-r--r-- | ld/testsuite/ld-scripts/provide-10.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-10.map | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-11.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-11.map | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-12.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-12.map | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-9.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-9.map | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/provide-9.t | 25 |
9 files changed, 61 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/provide-10.d b/ld/testsuite/ld-scripts/provide-10.d new file mode 100644 index 0000000..7481a92 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-10.d @@ -0,0 +1,3 @@ +#source: provide-5.s +#ld: --defsym=mem_origin=0x300 --defsym=mem_length=0x400 -T provide-9.t +#map: provide-10.map diff --git a/ld/testsuite/ld-scripts/provide-10.map b/ld/testsuite/ld-scripts/provide-10.map new file mode 100644 index 0000000..022b962 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-10.map @@ -0,0 +1,6 @@ +#... +Memory Configuration + +Name Origin Length Attributes +FOO 0x[0-9a-f]+300 +0x[0-9a-f]+400 +#pass diff --git a/ld/testsuite/ld-scripts/provide-11.d b/ld/testsuite/ld-scripts/provide-11.d new file mode 100644 index 0000000..79bcfa6 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-11.d @@ -0,0 +1,3 @@ +#source: provide-5.s +#ld: --defsym=mem_length=0x400 -T provide-9.t +#map: provide-11.map diff --git a/ld/testsuite/ld-scripts/provide-11.map b/ld/testsuite/ld-scripts/provide-11.map new file mode 100644 index 0000000..7176312 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-11.map @@ -0,0 +1,6 @@ +#... +Memory Configuration + +Name Origin Length Attributes +FOO 0x[0-9a-f]+100 +0x[0-9a-f]+400 +#pass diff --git a/ld/testsuite/ld-scripts/provide-12.d b/ld/testsuite/ld-scripts/provide-12.d new file mode 100644 index 0000000..41d9590 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-12.d @@ -0,0 +1,3 @@ +#source: provide-5.s +#ld: --defsym=mem_origin=0x300 -T provide-9.t +#map: provide-12.map diff --git a/ld/testsuite/ld-scripts/provide-12.map b/ld/testsuite/ld-scripts/provide-12.map new file mode 100644 index 0000000..e76654b --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-12.map @@ -0,0 +1,6 @@ +#... +Memory Configuration + +Name Origin Length Attributes +FOO 0x[0-9a-f]+300 +0x[0-9a-f]+200 +#pass diff --git a/ld/testsuite/ld-scripts/provide-9.d b/ld/testsuite/ld-scripts/provide-9.d new file mode 100644 index 0000000..94dc029 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-9.d @@ -0,0 +1,3 @@ +#source: provide-5.s +#ld: -T provide-9.t +#map: provide-9.map diff --git a/ld/testsuite/ld-scripts/provide-9.map b/ld/testsuite/ld-scripts/provide-9.map new file mode 100644 index 0000000..e35e3e2 --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-9.map @@ -0,0 +1,6 @@ +#... +Memory Configuration + +Name Origin Length Attributes +FOO 0x[0-9a-f]+100 +0x[0-9a-f]+200 +#pass diff --git a/ld/testsuite/ld-scripts/provide-9.t b/ld/testsuite/ld-scripts/provide-9.t new file mode 100644 index 0000000..00d906a --- /dev/null +++ b/ld/testsuite/ld-scripts/provide-9.t @@ -0,0 +1,25 @@ +PROVIDE (mem_origin = 0x100); +PROVIDE (mem_length = 0x200); + +MEMORY +{ + FOO : ORIGIN = mem_origin, LENGTH = mem_length +} + +SECTIONS +{ + .data : { + *(.data .data.*) + } >FOO + + .text : { + *(.text .text.*) + } >FOO + + .bss : { + *(.bss .bss.*) + } >FOO + + /DISCARD/ : { *(.*) } +} + |