mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 11:13:30 +08:00
9a645e5c0d
* ld-size/size-7.out: New file. * ld-size/size-8.out: Likewise. * ld-size/size-9.out: Likewise. * ld-size/size-9.rd: Likewise. * ld-size/size-9a.c: Likewise. * ld-size/size-9b.c: Likewise. * ld-size/size-10.out: Likewise. * ld-size/size-10.rd: Likewise. * ld-size/size-10a.c: Likewise. * ld-size/size-10b.c: Likewise. * ld-size/size.exp (build_tests): Build libsize-9.so and libsize-10.so. Run-time size relocation tests if supported. (run_time_tests): New.
11 lines
159 B
C
11 lines
159 B
C
__thread char bar[10];
|
|
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;
|
|
}
|