mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
07e7fdfd42
* testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE. * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__. * testsuite/ld-elf/indirect2.c: Likewise. * testsuite/ld-elf/indirect3b.c: Likewise. * testsuite/ld-elf/indirect4b.c: Likewise. * testsuite/ld-elf/pr14323-2.c: Likewise. * testsuite/ld-elf/pr18720b.c: Likewise. * testsuite/ld-elf/pr23428.c: Likewise. * testsuite/ld-elfvsb/common.c: Likewise. * testsuite/ld-elfvsb/main.c: Likewise. * testsuite/ld-elfvsb/sh1.c: Likewise. * testsuite/ld-elfvsb/test.c: Likewise. * testsuite/ld-pe/aligncomm-1.c: Likewise. * testsuite/ld-pe/aligncomm-2.c: Likewise. * testsuite/ld-pe/aligncomm-3.c: Likewise. * testsuite/ld-pe/aligncomm-4.c: Likewise. * testsuite/ld-plugin/pr23958.c: Likewise. * testsuite/ld-size/size-1b.c: Likewise. * testsuite/ld-size/size-2b.c: Likewise. * testsuite/ld-size/size-3a.c: Likewise. * testsuite/ld-size/size-3b.c: Likewise. * testsuite/ld-size/size-3c.c: Likewise. * testsuite/ld-size/size-4b.c: Likewise. * testsuite/ld-size/size-5b.c: Likewise. * testsuite/ld-size/size-6a.c: Likewise. * testsuite/ld-size/size-7a.c: Likewise. * testsuite/ld-size/size-8a.c: Likewise. * testsuite/ld-size/size-9b.c: Likewise. * testsuite/ld-size/size-10b.c: Likewise.
36 lines
479 B
C
36 lines
479 B
C
extern char bar[];
|
|
extern char size_of_bar __asm__ ("bar@SIZE");
|
|
|
|
char *bar_size_1 = &size_of_bar;
|
|
static char *bar_size_2 = &size_of_bar;
|
|
|
|
char *
|
|
bar_size1 (void)
|
|
{
|
|
return bar_size_1;
|
|
}
|
|
|
|
char *
|
|
bar_size2 (void)
|
|
{
|
|
return bar_size_2;
|
|
}
|
|
|
|
extern char foo[];
|
|
extern char size_of_foo __asm__ ("foo@SIZE");
|
|
|
|
char *foo_size_1 = &size_of_foo;
|
|
static char *foo_size_2 = &size_of_foo;
|
|
|
|
char *
|
|
foo_size1 (void)
|
|
{
|
|
return foo_size_1;
|
|
}
|
|
|
|
char *
|
|
foo_size2 (void)
|
|
{
|
|
return foo_size_2;
|
|
}
|