diff options
author | Piotr Bury <pbury@goahead.com> | 2011-05-12 21:59:09 -0400 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2011-05-12 21:59:09 -0400 |
commit | 320a5dc07b907b1e640fd11ce49a04aa2b367711 (patch) | |
tree | 2013cd7929bfc4fc4115233318c216cea60b5b79 /elf/tst-unique4lib.cc | |
parent | f574184a0e4b6ed69a5d9a3234543fba6d2a7367 (diff) | |
download | glibc-320a5dc07b907b1e640fd11ce49a04aa2b367711.zip glibc-320a5dc07b907b1e640fd11ce49a04aa2b367711.tar.gz glibc-320a5dc07b907b1e640fd11ce49a04aa2b367711.tar.bz2 |
Fix resizing able for unique symbols when adding symbol for copy relocation
Diffstat (limited to 'elf/tst-unique4lib.cc')
-rw-r--r-- | elf/tst-unique4lib.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/elf/tst-unique4lib.cc b/elf/tst-unique4lib.cc new file mode 100644 index 0000000..c9fdf9c --- /dev/null +++ b/elf/tst-unique4lib.cc @@ -0,0 +1,17 @@ +// BZ 12511 +#include "tst-unique4.h" + +template<int N> +int S<N>::i = N; +template<int N> +const int S<N>::j __attribute__ ((used)) = -1; + +static int a[24] = + { + S<1>::i, S<2>::i, S<3>::i, S<4>::i, S<5>::i, S<6>::i, S<7>::i, S<8>::i, + S<9>::i, S<10>::i, S<11>::i, S<12>::i, S<13>::i, S<14>::i, S<15>::i, + S<16>::i, S<17>::i, S<18>::i, S<19>::i, S<20>::i, S<21>::i, S<22>::i, + S<23>::i, S<24>::i + }; + +static int b = S<1>::j; |