diff options
Diffstat (limited to 'ld/testsuite/ld-scripts/alignof.t')
-rw-r--r-- | ld/testsuite/ld-scripts/alignof.t | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/alignof.t b/ld/testsuite/ld-scripts/alignof.t new file mode 100644 index 0000000..1241112 --- /dev/null +++ b/ld/testsuite/ld-scripts/alignof.t @@ -0,0 +1,15 @@ +SECTIONS { + .text : + { + tmpdir/alignof.o (.text) + } + .data : + { + tmpdir/alignof.o (.data) + LONG (ALIGNOF(.text)) + LONG (ALIGNOF(.data)) + } +} + +alignof_text = ALIGNOF(.text); +alignof_data = ALIGNOF(.data); |