aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/size-1.t
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-07-23 17:45:25 +0930
committerAlan Modra <amodra@gmail.com>2019-07-23 18:22:01 +0930
commitec49711a16785636a5b9eac3a92bd00382fcb1a9 (patch)
tree8d3709e808d7794a05db7b1397770380da36f110 /ld/testsuite/ld-elf/size-1.t
parentacea835faa6e14c0b008f001ab145e301ff215f6 (diff)
downloadgdb-ec49711a16785636a5b9eac3a92bd00382fcb1a9.zip
gdb-ec49711a16785636a5b9eac3a92bd00382fcb1a9.tar.gz
gdb-ec49711a16785636a5b9eac3a92bd00382fcb1a9.tar.bz2
Move ld-scripts size tests
Also restore them somewhat closer to the original. They originally failed on many targets, and a month later I "simplified" them as part of a larger patch fixing other failing tests. That unfortunately lost their main purpose, which was to test TLS layout. * testsuite/ld-elf/size-1.d, * testsuite/ld-elf/size-1.s, * testsuite/ld-elf/size-1.t: New test. * testsuite/ld-elf/size-2.d, * testsuite/ld-elf/size-2.s, * testsuite/ld-elf/size-2.t: New test. * testsuite/ld-scripts/size-1.d, * testsuite/ld-scripts/size-1.s, * testsuite/ld-scripts/size-1.t, * testsuite/ld-scripts/size-2.s, * testsuite/ld-scripts/size-2.d, * testsuite/ld-scripts/size-2.t, * testsuite/ld-scripts/size.exp: Delete.
Diffstat (limited to 'ld/testsuite/ld-elf/size-1.t')
-rw-r--r--ld/testsuite/ld-elf/size-1.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elf/size-1.t b/ld/testsuite/ld-elf/size-1.t
new file mode 100644
index 0000000..4f1ebf9
--- /dev/null
+++ b/ld/testsuite/ld-elf/size-1.t
@@ -0,0 +1,16 @@
+SECTIONS
+{
+ .text : { *(.text) }
+ .data : { *(.data) }
+ .bss : { *(.bss) }
+ .tdata : { *(.tdata) }
+ .tbss : { *(.tbss) }
+ .map : {
+ LONG (SIZEOF (.text))
+ LONG (SIZEOF (.data))
+ LONG (SIZEOF (.bss))
+ LONG (SIZEOF (.tdata))
+ LONG (SIZEOF (.tbss))
+ }
+ /DISCARD/ : { *(*) }
+}