diff options
Diffstat (limited to 'binutils-2.24/gold/testsuite/pr14265.t')
-rw-r--r-- | binutils-2.24/gold/testsuite/pr14265.t | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/binutils-2.24/gold/testsuite/pr14265.t b/binutils-2.24/gold/testsuite/pr14265.t new file mode 100644 index 00000000..e6d163af --- /dev/null +++ b/binutils-2.24/gold/testsuite/pr14265.t @@ -0,0 +1,25 @@ +SECTIONS +{ + .text : { *(.text) } + + __foo0_start = .; + .foo0 : { *(.foo0.*) } + __foo0_end = .; + + __foo1_start = .; + .foo1 : { KEEP(*(.foo1.*)) } + __foo1_end = .; + + .foo2 : { + __foo2_start = .; + KEEP(*(.foo2.*)) + __foo2_end = .; + } + + .got : { *(.got .toc) } +} + + +ASSERT (__foo1_start < __foo1_end, "foo1 not KEPT"); +ASSERT ((__foo1_end - __foo1_start) == (__foo2_end - __foo2_start),"foo2 not KEPT"); + |