mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
1cf48f4842
* ld-size/size-1.c: New file. * ld-size/size-1.out: Likewise. * ld-size/size-1a.c: Likewise. * ld-size/size-1b.c: Likewise. * ld-size/size-2.c: Likewise. * ld-size/size-2.out: Likewise. * ld-size/size-2a.c: Likewise. * ld-size/size-2b.c: Likewise. * ld-size/size.exp (build_tests): Build libsize-1.so and libsize-2.so. (run_tests): Run size-1 and size-2.
11 lines
164 B
C
11 lines
164 B
C
extern __thread char bar[];
|
|
extern char size_of_bar asm ("bar@SIZE");
|
|
char *bar_size = &size_of_bar;
|
|
|
|
char *
|
|
get_bar (int i, int v)
|
|
{
|
|
bar[i] = v;
|
|
return bar;
|
|
}
|