diff options
author | Alan Modra <amodra@gmail.com> | 2019-07-23 17:45:25 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-07-23 18:22:01 +0930 |
commit | ec49711a16785636a5b9eac3a92bd00382fcb1a9 (patch) | |
tree | 8d3709e808d7794a05db7b1397770380da36f110 /ld/testsuite/ld-elf/size-1.t | |
parent | acea835faa6e14c0b008f001ab145e301ff215f6 (diff) | |
download | gdb-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.t | 16 |
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/ : { *(*) } +} |